author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Thu, 09 Jul 2015 09:05:55 +0100 | |
changeset 1 | e3dcb6272f0b |
parent 0 | 38af781b75ab |
child 2 | 53abac7217de |
permissions | -rw-r--r-- |
0 | 1 |
"{ Package: 'jv:libllvms' }" |
2 |
||
3 |
"{ NameSpace: Smalltalk }" |
|
4 |
||
1
e3dcb6272f0b
Introduced abstract superclasses LLVMObject and LLVMDisposableObject
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
0
diff
changeset
|
5 |
LLVMObject subclass:#LLVMType |
0 | 6 |
instanceVariableNames:'' |
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'LLVM-Core' |
|
10 |
! |
|
11 |
||
12 |
!LLVMType class methodsFor:'instance creation'! |
|
13 |
||
14 |
function: argumentTypes returning: returnType |
|
1
e3dcb6272f0b
Introduced abstract superclasses LLVMObject and LLVMDisposableObject
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
0
diff
changeset
|
15 |
^ LLVM FunctionType: returnType _: argumentTypes asLLVMObjectArray _: argumentTypes size _: 0 |
0 | 16 |
|
17 |
"Created: / 07-07-2015 / 21:53:36 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
1
e3dcb6272f0b
Introduced abstract superclasses LLVMObject and LLVMDisposableObject
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
0
diff
changeset
|
18 |
"Modified: / 08-07-2015 / 22:58:38 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
0 | 19 |
! |
20 |
||
21 |
int1 |
|
22 |
^ LLVM Int1Type |
|
23 |
||
24 |
"Created: / 07-07-2015 / 21:21:25 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
25 |
! |
|
26 |
||
27 |
int16 |
|
28 |
^ LLVM Int16Type |
|
29 |
||
30 |
"Created: / 07-07-2015 / 21:21:33 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
31 |
! |
|
32 |
||
33 |
int32 |
|
34 |
^ LLVM Int32Type |
|
35 |
||
36 |
"Created: / 07-07-2015 / 21:21:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
37 |
! |
|
38 |
||
39 |
int64 |
|
40 |
^ LLVM Int64Type |
|
41 |
||
42 |
"Created: / 07-07-2015 / 21:21:45 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
43 |
! |
|
44 |
||
45 |
int8 |
|
46 |
^ LLVM Int8Type |
|
47 |
||
48 |
"Created: / 07-07-2015 / 21:21:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
49 |
! ! |
|
50 |
||
51 |
!LLVMType methodsFor:'accessing'! |
|
52 |
||
53 |
kind |
|
54 |
^ LLVM GetTypeKind: self |
|
55 |
||
56 |
"Created: / 07-07-2015 / 21:59:23 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
57 |
! ! |
|
58 |
||
59 |
!LLVMType methodsFor:'debugging'! |
|
60 |
||
61 |
dump |
|
62 |
LLVM DumpType: self. |
|
63 |
||
64 |
"Created: / 07-07-2015 / 22:03:04 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
65 |
! ! |
|
66 |