equal
deleted
inserted
replaced
38 This license is provisional and may (will) change in |
38 This license is provisional and may (will) change in |
39 a future. |
39 a future. |
40 " |
40 " |
41 ! ! |
41 ! ! |
42 |
42 |
|
43 !LLVMTypeVoid methodsFor:'accessing'! |
|
44 |
|
45 sizeInBits |
|
46 "For integer, pointer, FP types, return the size in bits. For all |
|
47 other types, throw an LLVMTypeError. |
|
48 |
|
49 LLVMType int32 sizeInBits -> 32 |
|
50 LLVMType int1 sizeInBits -> 1 |
|
51 " |
|
52 ^ 0 |
|
53 |
|
54 "Created: / 12-10-2015 / 18:27:10 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
55 ! ! |
|
56 |
|
57 !LLVMTypeVoid methodsFor:'converting'! |
|
58 |
|
59 array: numberOfElements |
|
60 "Create a fixed-size array whose elements are of type of receiver |
|
61 `LLVMType int8 array: 13` returns `[ 13 x i8 ]`" |
|
62 |
|
63 self shouldNotImplement |
|
64 |
|
65 "Created: / 12-10-2015 / 18:28:05 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
66 ! |
|
67 |
|
68 pointer |
|
69 "Return a pointer to the type represented by the receiver. |
|
70 `LLVMType int32 pointer` returns int32_t*" |
|
71 |
|
72 self shouldNotImplement |
|
73 |
|
74 "Created: / 12-10-2015 / 18:27:44 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
75 ! |
|
76 |
|
77 vector: numberOfElements |
|
78 "Create a fixed-size vector whose elements are of type of receiver." |
|
79 |
|
80 self shouldNotImplement |
|
81 |
|
82 "Created: / 12-10-2015 / 18:27:55 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
|
83 ! ! |
|
84 |
43 !LLVMTypeVoid methodsFor:'testing'! |
85 !LLVMTypeVoid methodsFor:'testing'! |
44 |
86 |
45 isVoidType |
87 isVoidType |
46 ^true |
88 ^true |
47 |
89 |