LLVMMCJITCompilerOptions.st
changeset 0 38af781b75ab
child 1 e3dcb6272f0b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LLVMMCJITCompilerOptions.st	Tue Jul 07 23:11:41 2015 +0100
@@ -0,0 +1,104 @@
+"{ Package: 'jv:libllvms' }"
+
+"{ NameSpace: Smalltalk }"
+
+ExternalAddress subclass:#LLVMMCJITCompilerOptions
+	instanceVariableNames:''
+	classVariableNames:''
+	poolDictionaries:''
+	category:'LLVM-Core'
+!
+
+!LLVMMCJITCompilerOptions class methodsFor:'accessing'!
+
+libraryName
+
+    OperatingSystem isUNIXlike ifTrue:[^nil].
+
+    OperatingSystem isMSWINDOWSlike ifTrue:[^nil].
+
+    self error:'Library name for host OS is not known'
+!
+
+sizeof
+    "Returns size of undelaying structure in bytes"
+
+    ^24
+! !
+
+!LLVMMCJITCompilerOptions methodsFor:'accessing'!
+
+CodeModel
+    "Returns ;; Line: 3627
+(enum LLVMCodeModel
+	(value (LLVMCodeModelDefault) 0)
+	(value (LLVMCodeModelJITDefault) 1)
+	(value (LLVMCodeModelSmall) 2)
+	(value (LLVMCodeModelKernel) 3)
+	(value (LLVMCodeModelMedium) 4)
+	(value (LLVMCodeModelLarge) 5) )"
+
+    ^self doubleWordAt:1 + 4
+!
+
+CodeModel: value
+
+    self doubleWordAt:1 + 4 put:value
+!
+
+EnableFastISel
+    "Returns ;; Line: 1121
+(typedef 
+	LLVMBool
+		int32)"
+
+    ^self at:1 + 12
+!
+
+EnableFastISel: value
+
+    self at:1 + 12 put:value
+!
+
+MCJMM
+    "Returns ;; Line: 3620
+(typedef 
+	LLVMMCJITMemoryManagerRef
+		(pointer-to ;; Line: 4027
+;; Class: LLVMOpaqueMCJITMemoryManager
+))"
+
+    ^self at:1 + 16
+!
+
+MCJMM: value
+
+    self at:1 + 16 put:value
+!
+
+NoFramePointerElim
+    "Returns ;; Line: 1121
+(typedef 
+	LLVMBool
+		int32)"
+
+    ^self at:1 + 8
+!
+
+NoFramePointerElim: value
+
+    self at:1 + 8 put:value
+!
+
+OptLevel
+    "Returns unsigned 
+		int32"
+
+    ^self longAt:1 + 0
+!
+
+OptLevel: value
+
+    self longAt:1 + 0 put:value
+! !
+