LLVMMCJITCompilerOptions.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Sat, 01 Aug 2015 06:21:29 +0100
changeset 13 fa967c0e1827
parent 12 f98e97fd02ef
child 14 c7dea3fcc5a7
permissions -rw-r--r--
Renamed class categories to begin with LLVM-S ...to allow eventual port to Squeak/Pharo. Monticello would require that.

"{ Package: 'jv:llvm_s' }"

"{ NameSpace: Smalltalk }"

LLVMObject subclass:#LLVMMCJITCompilerOptions
	instanceVariableNames:''
	classVariableNames:''
	poolDictionaries:''
	category:'LLVM-S-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
! !