author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 21 Apr 2016 22:17:02 +0100 | |
changeset 61 | c2e287d54de5 |
parent 43 | 597181c496f0 |
child 68 | a760b8536631 |
permissions | -rw-r--r-- |
14
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
1 |
" |
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
2 |
Copyright (C) 2015-now Jan Vrany |
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
3 |
|
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
4 |
This code is not an open-source (yet). You may use this code |
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
5 |
for your own experiments and projects, given that: |
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
6 |
|
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
7 |
* all modification to the code will be sent to the |
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
8 |
original author for inclusion in future releases |
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
9 |
* this is not used in any commercial software |
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
10 |
|
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
11 |
This license is provisional and may (will) change in |
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
12 |
a future. |
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
13 |
" |
12
f98e97fd02ef
Package renamed from jv:libllvms to jv:llvm_s
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
5
diff
changeset
|
14 |
"{ Package: 'jv:llvm_s' }" |
0 | 15 |
|
16 |
"{ NameSpace: Smalltalk }" |
|
17 |
||
1
e3dcb6272f0b
Introduced abstract superclasses LLVMObject and LLVMDisposableObject
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
0
diff
changeset
|
18 |
LLVMObject subclass:#LLVMValue |
5 | 19 |
instanceVariableNames:'type' |
0 | 20 |
classVariableNames:'' |
21 |
poolDictionaries:'' |
|
13
fa967c0e1827
Renamed class categories to begin with LLVM-S
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
22 |
category:'LLVM-S-Core' |
0 | 23 |
! |
24 |
||
14
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
25 |
!LLVMValue class methodsFor:'documentation'! |
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
26 |
|
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
27 |
copyright |
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
28 |
" |
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
29 |
Copyright (C) 2015-now Jan Vrany |
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
30 |
|
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
31 |
This code is not an open-source (yet). You may use this code |
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
32 |
for your own experiments and projects, given that: |
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
33 |
|
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
34 |
* all modification to the code will be sent to the |
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
35 |
original author for inclusion in future releases |
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
36 |
* this is not used in any commercial software |
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
37 |
|
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
38 |
This license is provisional and may (will) change in |
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
39 |
a future. |
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
40 |
" |
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
41 |
! ! |
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
42 |
|
4 | 43 |
!LLVMValue methodsFor:'accessing'! |
44 |
||
45 |
name |
|
46 |
^ LLVM GetValueName: self |
|
47 |
||
48 |
"Created: / 11-07-2015 / 07:28:49 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
49 |
! |
|
50 |
||
51 |
name: aString |
|
52 |
^ LLVM SetValueName: self _: aString |
|
53 |
||
54 |
"Created: / 11-07-2015 / 07:31:17 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
5 | 55 |
! |
56 |
||
61
c2e287d54de5
Added support for PHI nodes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
57 |
parent |
c2e287d54de5
Added support for PHI nodes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
58 |
"Return owning LLVMBasicBlock for this instruction. If the receiver is not |
c2e287d54de5
Added support for PHI nodes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
59 |
an instruction (i.e., #isInstruction returns false), then an error is raised" |
c2e287d54de5
Added support for PHI nodes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
60 |
self isInstruction ifTrue:[ |
c2e287d54de5
Added support for PHI nodes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
61 |
^ LLVM GetInstructionParent: self. |
c2e287d54de5
Added support for PHI nodes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
62 |
]. |
c2e287d54de5
Added support for PHI nodes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
63 |
self error: 'Not an instruction value' |
c2e287d54de5
Added support for PHI nodes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
64 |
|
c2e287d54de5
Added support for PHI nodes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
65 |
"Created: / 21-04-2016 / 22:37:29 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
c2e287d54de5
Added support for PHI nodes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
66 |
"Modified: / 22-04-2016 / 08:42:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
c2e287d54de5
Added support for PHI nodes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
67 |
! |
c2e287d54de5
Added support for PHI nodes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
68 |
|
5 | 69 |
type |
70 |
type isNil ifTrue:[ |
|
71 |
type := LLVM TypeOf: self. |
|
72 |
]. |
|
73 |
^ type |
|
74 |
||
75 |
"Created: / 11-07-2015 / 14:53:17 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
4 | 76 |
! ! |
77 |
||
22
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
78 |
!LLVMValue methodsFor:'converting'! |
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
79 |
|
61
c2e287d54de5
Added support for PHI nodes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
80 |
asLLVMBasicBlock |
22
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
81 |
"Return the underlying basic block if the value represents |
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
82 |
a basic block. Otherwise raise an error" |
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
83 |
|
43
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
84 |
self isBasicBlock ifFalse:[ |
22
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
85 |
self error: 'Not a basic block value'. |
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
86 |
]. |
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
87 |
^ LLVM ValueAsBasicBlock: self |
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
88 |
|
61
c2e287d54de5
Added support for PHI nodes.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
43
diff
changeset
|
89 |
"Created: / 21-04-2016 / 22:10:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
22
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
90 |
! |
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
91 |
|
33
feabf14b6c1d
Initial support for generating (DWARF) debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
23
diff
changeset
|
92 |
asLLVMMetadata |
feabf14b6c1d
Initial support for generating (DWARF) debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
23
diff
changeset
|
93 |
^ LLVMCEXT ValueAsMetadata: self |
feabf14b6c1d
Initial support for generating (DWARF) debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
23
diff
changeset
|
94 |
|
feabf14b6c1d
Initial support for generating (DWARF) debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
23
diff
changeset
|
95 |
"Created: / 15-08-2015 / 06:41:18 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
feabf14b6c1d
Initial support for generating (DWARF) debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
23
diff
changeset
|
96 |
! |
feabf14b6c1d
Initial support for generating (DWARF) debug info.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
23
diff
changeset
|
97 |
|
22
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
98 |
asLLVMValue |
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
99 |
^ self |
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
100 |
|
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
101 |
"Created: / 08-08-2015 / 02:28:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
102 |
! ! |
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
103 |
|
0 | 104 |
!LLVMValue methodsFor:'debugging'! |
105 |
||
2
53abac7217de
Added support for creating execution engines and fetching function addresses.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
106 |
inspectorExtraAttributes |
53abac7217de
Added support for creating execution engines and fetching function addresses.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
107 |
| d | |
53abac7217de
Added support for creating execution engines and fetching function addresses.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
108 |
|
53abac7217de
Added support for creating execution engines and fetching function addresses.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
109 |
d := super inspectorExtraAttributes. |
53abac7217de
Added support for creating execution engines and fetching function addresses.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
110 |
d add: '-dump' -> [ self dumpString ]. |
53abac7217de
Added support for creating execution engines and fetching function addresses.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
111 |
^ d |
53abac7217de
Added support for creating execution engines and fetching function addresses.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
112 |
|
53abac7217de
Added support for creating execution engines and fetching function addresses.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
113 |
"Created: / 10-07-2015 / 14:36:41 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
53abac7217de
Added support for creating execution engines and fetching function addresses.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
114 |
! ! |
53abac7217de
Added support for creating execution engines and fetching function addresses.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
115 |
|
53abac7217de
Added support for creating execution engines and fetching function addresses.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
116 |
!LLVMValue methodsFor:'debugging-dumping'! |
0 | 117 |
|
2
53abac7217de
Added support for creating execution engines and fetching function addresses.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
118 |
dumpOn: aStream |
53abac7217de
Added support for creating execution engines and fetching function addresses.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
119 |
aStream nextPutAll: self dumpString |
53abac7217de
Added support for creating execution engines and fetching function addresses.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
120 |
|
53abac7217de
Added support for creating execution engines and fetching function addresses.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
121 |
"Created: / 10-07-2015 / 14:32:18 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
53abac7217de
Added support for creating execution engines and fetching function addresses.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
122 |
! |
53abac7217de
Added support for creating execution engines and fetching function addresses.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
123 |
|
53abac7217de
Added support for creating execution engines and fetching function addresses.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
124 |
dumpString |
53abac7217de
Added support for creating execution engines and fetching function addresses.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
125 |
| cstr str| |
53abac7217de
Added support for creating execution engines and fetching function addresses.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
126 |
|
53abac7217de
Added support for creating execution engines and fetching function addresses.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
127 |
cstr := LLVM PrintValueToString: self. |
53abac7217de
Added support for creating execution engines and fetching function addresses.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
128 |
str := cstr copyCStringFromHeap. |
53abac7217de
Added support for creating execution engines and fetching function addresses.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
129 |
LLVM DisposeMessage: cstr. |
53abac7217de
Added support for creating execution engines and fetching function addresses.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
130 |
^ str |
53abac7217de
Added support for creating execution engines and fetching function addresses.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
131 |
|
53abac7217de
Added support for creating execution engines and fetching function addresses.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1
diff
changeset
|
132 |
"Created: / 10-07-2015 / 14:31:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
4 | 133 |
! |
0 | 134 |
|
4 | 135 |
printOn: aStream |
22
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
136 |
| name | |
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
137 |
|
4 | 138 |
super printOn: aStream. |
22
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
139 |
aStream nextPut: $(. |
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
140 |
name := self name. |
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
141 |
name notEmptyOrNil ifTrue:[ |
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
142 |
aStream nextPutAll: name |
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
143 |
] ifFalse:[ |
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
144 |
aStream nextPutAll: '<anon>' |
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
145 |
]. |
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
146 |
aStream space. |
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
147 |
aStream nextPutAll: self type dumpString. |
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
148 |
aStream nextPut: $) |
0 | 149 |
|
4 | 150 |
"Created: / 11-07-2015 / 07:09:31 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
22
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
151 |
"Modified: / 08-08-2015 / 04:22:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
0 | 152 |
! ! |
153 |
||
43
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
154 |
!LLVMValue methodsFor:'initialization'! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
155 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
156 |
initialize |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
157 |
self class == LLVMValue ifTrue:[ |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
158 |
self isFunction ifTrue:[ |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
159 |
self changeClassTo: LLVMFunction. |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
160 |
]. |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
161 |
]. |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
162 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
163 |
"Created: / 18-09-2015 / 06:14:30 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
164 |
! ! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
165 |
|
5 | 166 |
!LLVMValue methodsFor:'testing'! |
167 |
||
43
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
168 |
isAddrSpaceCastInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
169 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
170 |
^ LLVM IsAAddrSpaceCastInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
171 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
172 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
173 |
isAllocaInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
174 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
175 |
^ LLVM IsAAllocaInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
176 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
177 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
178 |
isArgument |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
179 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
180 |
^ LLVM IsAArgument: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
181 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
182 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
183 |
isBasicBlock |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
184 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
185 |
^ LLVM IsABasicBlock: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
186 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
187 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
188 |
isBinaryOperator |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
189 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
190 |
^ LLVM IsABinaryOperator: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
191 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
192 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
193 |
isBitCastInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
194 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
195 |
^ LLVM IsABitCastInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
196 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
197 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
198 |
isBlockAddress |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
199 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
200 |
^ LLVM IsABlockAddress: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
201 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
202 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
203 |
isBranchInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
204 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
205 |
^ LLVM IsABranchInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
206 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
207 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
208 |
isCallInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
209 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
210 |
^ LLVM IsACallInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
211 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
212 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
213 |
isCastInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
214 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
215 |
^ LLVM IsACastInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
216 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
217 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
218 |
isCatchEndPadInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
219 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
220 |
^ LLVM IsACatchEndPadInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
221 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
222 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
223 |
isCatchPadInst |
16
23e82cf19788
Tests refactored to be actually a testcase. Introduced LLVMConstant class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
224 |
|
43
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
225 |
^ LLVM IsACatchPadInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
226 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
227 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
228 |
isCatchReturnInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
229 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
230 |
^ LLVM IsACatchReturnInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
231 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
232 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
233 |
isCleanupPadInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
234 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
235 |
^ LLVM IsACleanupPadInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
236 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
237 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
238 |
isCleanupReturnInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
239 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
240 |
^ LLVM IsACleanupReturnInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
241 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
242 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
243 |
isCmpInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
244 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
245 |
^ LLVM IsACmpInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
246 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
247 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
248 |
isConstant |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
249 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
250 |
^ LLVM IsAConstant: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
251 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
252 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
253 |
isConstantAggregateZero |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
254 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
255 |
^ LLVM IsAConstantAggregateZero: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
256 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
257 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
258 |
isConstantArray |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
259 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
260 |
^ LLVM IsAConstantArray: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
261 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
262 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
263 |
isConstantDataArray |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
264 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
265 |
^ LLVM IsAConstantDataArray: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
266 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
267 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
268 |
isConstantDataSequential |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
269 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
270 |
^ LLVM IsAConstantDataSequential: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
271 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
272 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
273 |
isConstantDataVector |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
274 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
275 |
^ LLVM IsAConstantDataVector: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
276 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
277 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
278 |
isConstantExpr |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
279 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
280 |
^ LLVM IsAConstantExpr: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
281 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
282 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
283 |
isConstantFP |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
284 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
285 |
^ LLVM IsAConstantFP: self |
16
23e82cf19788
Tests refactored to be actually a testcase. Introduced LLVMConstant class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
286 |
! |
23e82cf19788
Tests refactored to be actually a testcase. Introduced LLVMConstant class
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
287 |
|
43
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
288 |
isConstantInt |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
289 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
290 |
^ LLVM IsAConstantInt: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
291 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
292 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
293 |
isConstantPointerNull |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
294 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
295 |
^ LLVM IsAConstantPointerNull: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
296 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
297 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
298 |
isConstantStruct |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
299 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
300 |
^ LLVM IsAConstantStruct: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
301 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
302 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
303 |
isConstantVector |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
304 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
305 |
^ LLVM IsAConstantVector: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
306 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
307 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
308 |
isDbgDeclareInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
309 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
310 |
^ LLVM IsADbgDeclareInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
311 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
312 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
313 |
isDbgInfoIntrinsic |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
314 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
315 |
^ LLVM IsADbgInfoIntrinsic: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
316 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
317 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
318 |
isExtractElementInst |
22
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
319 |
|
43
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
320 |
^ LLVM IsAExtractElementInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
321 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
322 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
323 |
isExtractValueInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
324 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
325 |
^ LLVM IsAExtractValueInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
326 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
327 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
328 |
isFCmpInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
329 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
330 |
^ LLVM IsAFCmpInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
331 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
332 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
333 |
isFPExtInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
334 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
335 |
^ LLVM IsAFPExtInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
336 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
337 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
338 |
isFPToSIInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
339 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
340 |
^ LLVM IsAFPToSIInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
341 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
342 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
343 |
isFPToUIInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
344 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
345 |
^ LLVM IsAFPToUIInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
346 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
347 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
348 |
isFPTruncInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
349 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
350 |
^ LLVM IsAFPTruncInst: self |
22
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
351 |
! |
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
352 |
|
43
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
353 |
isFunction |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
354 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
355 |
^ LLVM IsAFunction: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
356 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
357 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
358 |
isGetElementPtrInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
359 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
360 |
^ LLVM IsAGetElementPtrInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
361 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
362 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
363 |
isGlobalAlias |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
364 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
365 |
^ LLVM IsAGlobalAlias: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
366 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
367 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
368 |
isGlobalObject |
5 | 369 |
|
43
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
370 |
^ LLVM IsAGlobalObject: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
371 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
372 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
373 |
isGlobalValue |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
374 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
375 |
^ LLVM IsAGlobalValue: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
376 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
377 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
378 |
isGlobalVariable |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
379 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
380 |
^ LLVM IsAGlobalVariable: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
381 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
382 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
383 |
isICmpInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
384 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
385 |
^ LLVM IsAICmpInst: self |
5 | 386 |
! |
387 |
||
43
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
388 |
isIndirectBrInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
389 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
390 |
^ LLVM IsAIndirectBrInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
391 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
392 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
393 |
isInlineAsm |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
394 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
395 |
^ LLVM IsAInlineAsm: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
396 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
397 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
398 |
isInsertElementInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
399 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
400 |
^ LLVM IsAInsertElementInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
401 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
402 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
403 |
isInsertValueInst |
5 | 404 |
|
43
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
405 |
^ LLVM IsAInsertValueInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
406 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
407 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
408 |
isInstruction |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
409 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
410 |
^ LLVM IsAInstruction: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
411 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
412 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
413 |
isIntToPtrInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
414 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
415 |
^ LLVM IsAIntToPtrInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
416 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
417 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
418 |
isIntrinsicInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
419 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
420 |
^ LLVM IsAIntrinsicInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
421 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
422 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
423 |
isInvokeInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
424 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
425 |
^ LLVM IsAInvokeInst: self |
22
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
426 |
! |
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
427 |
|
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
428 |
isLLVMValue |
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
429 |
^ true |
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
430 |
|
789a35bd30ac
Added example for compiling conditional. Added convenience API to simply code generation.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
16
diff
changeset
|
431 |
"Created: / 08-08-2015 / 03:28:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
43
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
432 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
433 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
434 |
isLandingPadInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
435 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
436 |
^ LLVM IsALandingPadInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
437 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
438 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
439 |
isLoadInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
440 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
441 |
^ LLVM IsALoadInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
442 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
443 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
444 |
isMDNode |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
445 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
446 |
^ LLVM IsAMDNode: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
447 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
448 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
449 |
isMDString |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
450 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
451 |
^ LLVM IsAMDString: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
452 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
453 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
454 |
isMemCpyInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
455 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
456 |
^ LLVM IsAMemCpyInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
457 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
458 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
459 |
isMemIntrinsic |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
460 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
461 |
^ LLVM IsAMemIntrinsic: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
462 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
463 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
464 |
isMemMoveInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
465 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
466 |
^ LLVM IsAMemMoveInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
467 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
468 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
469 |
isMemSetInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
470 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
471 |
^ LLVM IsAMemSetInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
472 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
473 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
474 |
isPHINode |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
475 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
476 |
^ LLVM IsAPHINode: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
477 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
478 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
479 |
isPtrToIntInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
480 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
481 |
^ LLVM IsAPtrToIntInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
482 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
483 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
484 |
isResumeInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
485 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
486 |
^ LLVM IsAResumeInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
487 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
488 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
489 |
isReturnInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
490 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
491 |
^ LLVM IsAReturnInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
492 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
493 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
494 |
isSExtInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
495 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
496 |
^ LLVM IsASExtInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
497 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
498 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
499 |
isSIToFPInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
500 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
501 |
^ LLVM IsASIToFPInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
502 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
503 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
504 |
isSelectInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
505 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
506 |
^ LLVM IsASelectInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
507 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
508 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
509 |
isShuffleVectorInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
510 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
511 |
^ LLVM IsAShuffleVectorInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
512 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
513 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
514 |
isStoreInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
515 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
516 |
^ LLVM IsAStoreInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
517 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
518 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
519 |
isSwitchInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
520 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
521 |
^ LLVM IsASwitchInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
522 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
523 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
524 |
isTerminatePadInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
525 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
526 |
^ LLVM IsATerminatePadInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
527 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
528 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
529 |
isTerminatorInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
530 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
531 |
^ LLVM IsATerminatorInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
532 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
533 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
534 |
isTruncInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
535 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
536 |
^ LLVM IsATruncInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
537 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
538 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
539 |
isUIToFPInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
540 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
541 |
^ LLVM IsAUIToFPInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
542 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
543 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
544 |
isUnaryInstruction |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
545 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
546 |
^ LLVM IsAUnaryInstruction: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
547 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
548 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
549 |
isUndefValue |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
550 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
551 |
^ LLVM IsAUndefValue: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
552 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
553 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
554 |
isUnreachableInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
555 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
556 |
^ LLVM IsAUnreachableInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
557 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
558 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
559 |
isUser |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
560 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
561 |
^ LLVM IsAUser: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
562 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
563 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
564 |
isVAArgInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
565 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
566 |
^ LLVM IsAVAArgInst: self |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
567 |
! |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
568 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
569 |
isZExtInst |
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
570 |
|
597181c496f0
Added value-kind testing functions to LLVMValue
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
33
diff
changeset
|
571 |
^ LLVM IsAZExtInst: self |
5 | 572 |
! ! |
573 |
||
23
0744cd9c0acc
Added an example of iterative factorial function
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
22
diff
changeset
|
574 |
!LLVMValue class methodsFor:'documentation'! |
0744cd9c0acc
Added an example of iterative factorial function
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
22
diff
changeset
|
575 |
|
0744cd9c0acc
Added an example of iterative factorial function
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
22
diff
changeset
|
576 |
version_HG |
0744cd9c0acc
Added an example of iterative factorial function
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
22
diff
changeset
|
577 |
|
0744cd9c0acc
Added an example of iterative factorial function
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
22
diff
changeset
|
578 |
^ '$Changeset: <not expanded> $' |
0744cd9c0acc
Added an example of iterative factorial function
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
22
diff
changeset
|
579 |
! ! |
0744cd9c0acc
Added an example of iterative factorial function
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
22
diff
changeset
|
580 |