author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Wed, 27 Jan 2016 14:20:58 +0000 | |
changeset 54 | a288aced3dd1 |
parent 37 | 0933f973bc22 |
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:
0
diff
changeset
|
14 |
"{ Package: 'jv:llvm_s' }" |
0 | 15 |
|
16 |
"{ NameSpace: Smalltalk }" |
|
17 |
||
18 |
SharedPool subclass:#LLVMAttribute |
|
19 |
instanceVariableNames:'' |
|
20 |
classVariableNames:'LLVMZExtAttribute LLVMSExtAttribute LLVMNoReturnAttribute |
|
21 |
LLVMInRegAttribute LLVMStructRetAttribute LLVMNoUnwindAttribute |
|
22 |
LLVMNoAliasAttribute LLVMByValAttribute LLVMNestAttribute |
|
23 |
LLVMReadNoneAttribute LLVMReadOnlyAttribute LLVMNoInlineAttribute |
|
24 |
LLVMAlwaysInlineAttribute LLVMOptimizeForSizeAttribute |
|
25 |
LLVMStackProtectAttribute LLVMStackProtectReqAttribute |
|
26 |
LLVMAlignment LLVMNoCaptureAttribute LLVMNoRedZoneAttribute |
|
27 |
LLVMNoImplicitFloatAttribute LLVMNakedAttribute |
|
28 |
LLVMInlineHintAttribute LLVMStackAlignment LLVMReturnsTwice |
|
29 |
LLVMUWTable LLVMNonLazyBind' |
|
30 |
poolDictionaries:'' |
|
13
fa967c0e1827
Renamed class categories to begin with LLVM-S
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
12
diff
changeset
|
31 |
category:'LLVM-S-Core-Constants' |
0 | 32 |
! |
33 |
||
14
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
34 |
!LLVMAttribute class methodsFor:'documentation'! |
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
35 |
|
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
36 |
copyright |
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 |
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
|
39 |
|
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
40 |
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
|
41 |
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
|
42 |
|
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
43 |
* 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
|
44 |
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
|
45 |
* 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
|
46 |
|
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
47 |
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
|
48 |
a future. |
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
49 |
" |
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
50 |
! ! |
c7dea3fcc5a7
Added short README, license.txt and updated copyright information
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
13
diff
changeset
|
51 |
|
0 | 52 |
!LLVMAttribute class methodsFor:'initialization'! |
53 |
||
54 |
initialize |
|
55 |
||
56 |
LLVMZExtAttribute := 1. |
|
57 |
LLVMSExtAttribute := 2. |
|
58 |
LLVMNoReturnAttribute := 4. |
|
59 |
LLVMInRegAttribute := 8. |
|
60 |
LLVMStructRetAttribute := 16. |
|
61 |
LLVMNoUnwindAttribute := 32. |
|
62 |
LLVMNoAliasAttribute := 64. |
|
63 |
LLVMByValAttribute := 128. |
|
64 |
LLVMNestAttribute := 256. |
|
65 |
LLVMReadNoneAttribute := 512. |
|
66 |
LLVMReadOnlyAttribute := 1024. |
|
67 |
LLVMNoInlineAttribute := 2048. |
|
68 |
LLVMAlwaysInlineAttribute := 4096. |
|
69 |
LLVMOptimizeForSizeAttribute := 8192. |
|
70 |
LLVMStackProtectAttribute := 16384. |
|
71 |
LLVMStackProtectReqAttribute := 32768. |
|
72 |
LLVMAlignment := 2031616. |
|
73 |
LLVMNoCaptureAttribute := 2097152. |
|
74 |
LLVMNoRedZoneAttribute := 4194304. |
|
75 |
LLVMNoImplicitFloatAttribute := 8388608. |
|
76 |
LLVMNakedAttribute := 16777216. |
|
77 |
LLVMInlineHintAttribute := 33554432. |
|
78 |
LLVMStackAlignment := 469762048. |
|
79 |
LLVMReturnsTwice := 536870912. |
|
80 |
LLVMUWTable := 1073741824. |
|
81 |
LLVMNonLazyBind := -2147483648. |
|
82 |
! ! |
|
83 |
||
84 |
!LLVMAttribute class methodsFor:'constants'! |
|
85 |
||
86 |
LLVMAlignment |
|
87 |
||
88 |
^LLVMAlignment |
|
89 |
! |
|
90 |
||
91 |
LLVMAlwaysInlineAttribute |
|
92 |
||
93 |
^LLVMAlwaysInlineAttribute |
|
94 |
! |
|
95 |
||
96 |
LLVMByValAttribute |
|
97 |
||
98 |
^LLVMByValAttribute |
|
99 |
! |
|
100 |
||
101 |
LLVMInRegAttribute |
|
102 |
||
103 |
^LLVMInRegAttribute |
|
104 |
! |
|
105 |
||
106 |
LLVMInlineHintAttribute |
|
107 |
||
108 |
^LLVMInlineHintAttribute |
|
109 |
! |
|
110 |
||
111 |
LLVMNakedAttribute |
|
112 |
||
113 |
^LLVMNakedAttribute |
|
114 |
! |
|
115 |
||
116 |
LLVMNestAttribute |
|
117 |
||
118 |
^LLVMNestAttribute |
|
119 |
! |
|
120 |
||
121 |
LLVMNoAliasAttribute |
|
122 |
||
123 |
^LLVMNoAliasAttribute |
|
124 |
! |
|
125 |
||
126 |
LLVMNoCaptureAttribute |
|
127 |
||
128 |
^LLVMNoCaptureAttribute |
|
129 |
! |
|
130 |
||
131 |
LLVMNoImplicitFloatAttribute |
|
132 |
||
133 |
^LLVMNoImplicitFloatAttribute |
|
134 |
! |
|
135 |
||
136 |
LLVMNoInlineAttribute |
|
137 |
||
138 |
^LLVMNoInlineAttribute |
|
139 |
! |
|
140 |
||
141 |
LLVMNoRedZoneAttribute |
|
142 |
||
143 |
^LLVMNoRedZoneAttribute |
|
144 |
! |
|
145 |
||
146 |
LLVMNoReturnAttribute |
|
147 |
||
148 |
^LLVMNoReturnAttribute |
|
149 |
! |
|
150 |
||
151 |
LLVMNoUnwindAttribute |
|
152 |
||
153 |
^LLVMNoUnwindAttribute |
|
154 |
! |
|
155 |
||
156 |
LLVMNonLazyBind |
|
157 |
||
158 |
^LLVMNonLazyBind |
|
159 |
! |
|
160 |
||
161 |
LLVMOptimizeForSizeAttribute |
|
162 |
||
163 |
^LLVMOptimizeForSizeAttribute |
|
164 |
! |
|
165 |
||
166 |
LLVMReadNoneAttribute |
|
167 |
||
168 |
^LLVMReadNoneAttribute |
|
169 |
! |
|
170 |
||
171 |
LLVMReadOnlyAttribute |
|
172 |
||
173 |
^LLVMReadOnlyAttribute |
|
174 |
! |
|
175 |
||
176 |
LLVMReturnsTwice |
|
177 |
||
178 |
^LLVMReturnsTwice |
|
179 |
! |
|
180 |
||
181 |
LLVMSExtAttribute |
|
182 |
||
183 |
^LLVMSExtAttribute |
|
184 |
! |
|
185 |
||
186 |
LLVMStackAlignment |
|
187 |
||
188 |
^LLVMStackAlignment |
|
189 |
! |
|
190 |
||
191 |
LLVMStackProtectAttribute |
|
192 |
||
193 |
^LLVMStackProtectAttribute |
|
194 |
! |
|
195 |
||
196 |
LLVMStackProtectReqAttribute |
|
197 |
||
198 |
^LLVMStackProtectReqAttribute |
|
199 |
! |
|
200 |
||
201 |
LLVMStructRetAttribute |
|
202 |
||
203 |
^LLVMStructRetAttribute |
|
204 |
! |
|
205 |
||
206 |
LLVMUWTable |
|
207 |
||
208 |
^LLVMUWTable |
|
209 |
! |
|
210 |
||
211 |
LLVMZExtAttribute |
|
212 |
||
213 |
^LLVMZExtAttribute |
|
214 |
! ! |
|
215 |
||
37
0933f973bc22
Add assertion to LLVMModule>>newWithName: to check for nil name. Fixed skip-in-debugger pragma (typo)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
216 |
!LLVMAttribute class methodsFor:'documentation'! |
0933f973bc22
Add assertion to LLVMModule>>newWithName: to check for nil name. Fixed skip-in-debugger pragma (typo)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
217 |
|
0933f973bc22
Add assertion to LLVMModule>>newWithName: to check for nil name. Fixed skip-in-debugger pragma (typo)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
218 |
version_HG |
0933f973bc22
Add assertion to LLVMModule>>newWithName: to check for nil name. Fixed skip-in-debugger pragma (typo)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
219 |
|
0933f973bc22
Add assertion to LLVMModule>>newWithName: to check for nil name. Fixed skip-in-debugger pragma (typo)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
220 |
^ '$Changeset: <not expanded> $' |
0933f973bc22
Add assertion to LLVMModule>>newWithName: to check for nil name. Fixed skip-in-debugger pragma (typo)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
221 |
! ! |
0933f973bc22
Add assertion to LLVMModule>>newWithName: to check for nil name. Fixed skip-in-debugger pragma (typo)
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
14
diff
changeset
|
222 |
|
0 | 223 |
|
224 |
LLVMAttribute initialize! |