0
|
1 |
"{ Package: 'jv:libllvms' }"
|
|
2 |
|
|
3 |
"{ NameSpace: Smalltalk }"
|
|
4 |
|
|
5 |
ExternalAddress subclass:#LLVMMCJITCompilerOptions
|
|
6 |
instanceVariableNames:''
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'LLVM-Core'
|
|
10 |
!
|
|
11 |
|
|
12 |
!LLVMMCJITCompilerOptions class methodsFor:'accessing'!
|
|
13 |
|
|
14 |
libraryName
|
|
15 |
|
|
16 |
OperatingSystem isUNIXlike ifTrue:[^nil].
|
|
17 |
|
|
18 |
OperatingSystem isMSWINDOWSlike ifTrue:[^nil].
|
|
19 |
|
|
20 |
self error:'Library name for host OS is not known'
|
|
21 |
!
|
|
22 |
|
|
23 |
sizeof
|
|
24 |
"Returns size of undelaying structure in bytes"
|
|
25 |
|
|
26 |
^24
|
|
27 |
! !
|
|
28 |
|
|
29 |
!LLVMMCJITCompilerOptions methodsFor:'accessing'!
|
|
30 |
|
|
31 |
CodeModel
|
|
32 |
"Returns ;; Line: 3627
|
|
33 |
(enum LLVMCodeModel
|
|
34 |
(value (LLVMCodeModelDefault) 0)
|
|
35 |
(value (LLVMCodeModelJITDefault) 1)
|
|
36 |
(value (LLVMCodeModelSmall) 2)
|
|
37 |
(value (LLVMCodeModelKernel) 3)
|
|
38 |
(value (LLVMCodeModelMedium) 4)
|
|
39 |
(value (LLVMCodeModelLarge) 5) )"
|
|
40 |
|
|
41 |
^self doubleWordAt:1 + 4
|
|
42 |
!
|
|
43 |
|
|
44 |
CodeModel: value
|
|
45 |
|
|
46 |
self doubleWordAt:1 + 4 put:value
|
|
47 |
!
|
|
48 |
|
|
49 |
EnableFastISel
|
|
50 |
"Returns ;; Line: 1121
|
|
51 |
(typedef
|
|
52 |
LLVMBool
|
|
53 |
int32)"
|
|
54 |
|
|
55 |
^self at:1 + 12
|
|
56 |
!
|
|
57 |
|
|
58 |
EnableFastISel: value
|
|
59 |
|
|
60 |
self at:1 + 12 put:value
|
|
61 |
!
|
|
62 |
|
|
63 |
MCJMM
|
|
64 |
"Returns ;; Line: 3620
|
|
65 |
(typedef
|
|
66 |
LLVMMCJITMemoryManagerRef
|
|
67 |
(pointer-to ;; Line: 4027
|
|
68 |
;; Class: LLVMOpaqueMCJITMemoryManager
|
|
69 |
))"
|
|
70 |
|
|
71 |
^self at:1 + 16
|
|
72 |
!
|
|
73 |
|
|
74 |
MCJMM: value
|
|
75 |
|
|
76 |
self at:1 + 16 put:value
|
|
77 |
!
|
|
78 |
|
|
79 |
NoFramePointerElim
|
|
80 |
"Returns ;; Line: 1121
|
|
81 |
(typedef
|
|
82 |
LLVMBool
|
|
83 |
int32)"
|
|
84 |
|
|
85 |
^self at:1 + 8
|
|
86 |
!
|
|
87 |
|
|
88 |
NoFramePointerElim: value
|
|
89 |
|
|
90 |
self at:1 + 8 put:value
|
|
91 |
!
|
|
92 |
|
|
93 |
OptLevel
|
|
94 |
"Returns unsigned
|
|
95 |
int32"
|
|
96 |
|
|
97 |
^self longAt:1 + 0
|
|
98 |
!
|
|
99 |
|
|
100 |
OptLevel: value
|
|
101 |
|
|
102 |
self longAt:1 + 0 put:value
|
|
103 |
! !
|
|
104 |
|