Package org.lwjgl.llvm
Class LLVMMCJITCompilerOptions
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.llvm.LLVMMCJITCompilerOptions
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class LLVMMCJITCompilerOptions extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Layout
struct LLVMMCJITCompilerOptions { unsigned int OptLevel; LLVMCodeModel CodeModel; LLVMBool NoFramePointerElim; LLVMBool EnableFastISel; LLVMMCJITMemoryManagerRef MCJMM; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LLVMMCJITCompilerOptions.Buffer
An array ofLLVMMCJITCompilerOptions
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
CODEMODEL
ENABLEFASTISEL
MCJMM
NOFRAMEPOINTERELIM
OPTLEVELThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description LLVMMCJITCompilerOptions(java.nio.ByteBuffer container)
Creates aLLVMMCJITCompilerOptions
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LLVMMCJITCompilerOptions
calloc()
Returns a newLLVMMCJITCompilerOptions
instance allocated withmemCalloc
.static LLVMMCJITCompilerOptions.Buffer
calloc(int capacity)
Returns a newLLVMMCJITCompilerOptions.Buffer
instance allocated withmemCalloc
.static LLVMMCJITCompilerOptions
callocStack()
Returns a newLLVMMCJITCompilerOptions
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static LLVMMCJITCompilerOptions.Buffer
callocStack(int capacity)
Returns a newLLVMMCJITCompilerOptions.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static LLVMMCJITCompilerOptions.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newLLVMMCJITCompilerOptions.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static LLVMMCJITCompilerOptions
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newLLVMMCJITCompilerOptions
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
CodeModel()
Returns the value of theCodeModel
field.LLVMMCJITCompilerOptions
CodeModel(int value)
Sets the specified value to theCodeModel
field.static LLVMMCJITCompilerOptions
create()
Returns a newLLVMMCJITCompilerOptions
instance allocated withBufferUtils
.static LLVMMCJITCompilerOptions.Buffer
create(int capacity)
Returns a newLLVMMCJITCompilerOptions.Buffer
instance allocated withBufferUtils
.static LLVMMCJITCompilerOptions
create(long address)
Returns a newLLVMMCJITCompilerOptions
instance for the specified memory address.static LLVMMCJITCompilerOptions.Buffer
create(long address, int capacity)
Create aLLVMMCJITCompilerOptions.Buffer
instance at the specified memory.static LLVMMCJITCompilerOptions
createSafe(long address)
static LLVMMCJITCompilerOptions.Buffer
createSafe(long address, int capacity)
boolean
EnableFastISel()
Returns the value of theEnableFastISel
field.LLVMMCJITCompilerOptions
EnableFastISel(boolean value)
Sets the specified value to theEnableFastISel
field.static LLVMMCJITCompilerOptions
malloc()
Returns a newLLVMMCJITCompilerOptions
instance allocated withmemAlloc
.static LLVMMCJITCompilerOptions.Buffer
malloc(int capacity)
Returns a newLLVMMCJITCompilerOptions.Buffer
instance allocated withmemAlloc
.static LLVMMCJITCompilerOptions
mallocStack()
Returns a newLLVMMCJITCompilerOptions
instance allocated on the thread-localMemoryStack
.static LLVMMCJITCompilerOptions.Buffer
mallocStack(int capacity)
Returns a newLLVMMCJITCompilerOptions.Buffer
instance allocated on the thread-localMemoryStack
.static LLVMMCJITCompilerOptions.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newLLVMMCJITCompilerOptions.Buffer
instance allocated on the specifiedMemoryStack
.static LLVMMCJITCompilerOptions
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newLLVMMCJITCompilerOptions
instance allocated on the specifiedMemoryStack
.long
MCJMM()
Returns the value of theMCJMM
field.LLVMMCJITCompilerOptions
MCJMM(long value)
Sets the specified value to theMCJMM
field.static int
nCodeModel(long struct)
Unsafe version ofCodeModel()
.static void
nCodeModel(long struct, int value)
Unsafe version ofCodeModel
.static int
nEnableFastISel(long struct)
Unsafe version ofEnableFastISel()
.static void
nEnableFastISel(long struct, int value)
Unsafe version ofEnableFastISel
.static long
nMCJMM(long struct)
Unsafe version ofMCJMM
.static void
nMCJMM(long struct, long value)
Unsafe version ofMCJMM
.static int
nNoFramePointerElim(long struct)
Unsafe version ofNoFramePointerElim()
.static void
nNoFramePointerElim(long struct, int value)
Unsafe version ofNoFramePointerElim
.boolean
NoFramePointerElim()
Returns the value of theNoFramePointerElim
field.LLVMMCJITCompilerOptions
NoFramePointerElim(boolean value)
Sets the specified value to theNoFramePointerElim
field.static int
nOptLevel(long struct)
Unsafe version ofOptLevel()
.static void
nOptLevel(long struct, int value)
Unsafe version ofOptLevel
.int
OptLevel()
Returns the value of theOptLevel
field.LLVMMCJITCompilerOptions
OptLevel(int value)
Sets the specified value to theOptLevel
field.LLVMMCJITCompilerOptions
set(int OptLevel, int CodeModel, boolean NoFramePointerElim, boolean EnableFastISel, long MCJMM)
Initializes this struct with the specified values.LLVMMCJITCompilerOptions
set(LLVMMCJITCompilerOptions src)
Copies the specified struct data to this struct.int
sizeof()
static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(long array, int count)
Callsvalidate(long)
for each struct contained in the specified struct array.
-
-
-
Constructor Detail
-
LLVMMCJITCompilerOptions
public LLVMMCJITCompilerOptions(java.nio.ByteBuffer container)
Creates aLLVMMCJITCompilerOptions
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
OptLevel
public int OptLevel()
Returns the value of theOptLevel
field.
-
CodeModel
public int CodeModel()
Returns the value of theCodeModel
field.
-
NoFramePointerElim
public boolean NoFramePointerElim()
Returns the value of theNoFramePointerElim
field.
-
EnableFastISel
public boolean EnableFastISel()
Returns the value of theEnableFastISel
field.
-
MCJMM
public long MCJMM()
Returns the value of theMCJMM
field.
-
OptLevel
public LLVMMCJITCompilerOptions OptLevel(int value)
Sets the specified value to theOptLevel
field.
-
CodeModel
public LLVMMCJITCompilerOptions CodeModel(int value)
Sets the specified value to theCodeModel
field.
-
NoFramePointerElim
public LLVMMCJITCompilerOptions NoFramePointerElim(boolean value)
Sets the specified value to theNoFramePointerElim
field.
-
EnableFastISel
public LLVMMCJITCompilerOptions EnableFastISel(boolean value)
Sets the specified value to theEnableFastISel
field.
-
MCJMM
public LLVMMCJITCompilerOptions MCJMM(long value)
Sets the specified value to theMCJMM
field.
-
set
public LLVMMCJITCompilerOptions set(int OptLevel, int CodeModel, boolean NoFramePointerElim, boolean EnableFastISel, long MCJMM)
Initializes this struct with the specified values.
-
set
public LLVMMCJITCompilerOptions set(LLVMMCJITCompilerOptions src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static LLVMMCJITCompilerOptions malloc()
Returns a newLLVMMCJITCompilerOptions
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static LLVMMCJITCompilerOptions calloc()
Returns a newLLVMMCJITCompilerOptions
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static LLVMMCJITCompilerOptions create()
Returns a newLLVMMCJITCompilerOptions
instance allocated withBufferUtils
.
-
create
public static LLVMMCJITCompilerOptions create(long address)
Returns a newLLVMMCJITCompilerOptions
instance for the specified memory address.
-
createSafe
@Nullable public static LLVMMCJITCompilerOptions createSafe(long address)
-
malloc
public static LLVMMCJITCompilerOptions.Buffer malloc(int capacity)
Returns a newLLVMMCJITCompilerOptions.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static LLVMMCJITCompilerOptions.Buffer calloc(int capacity)
Returns a newLLVMMCJITCompilerOptions.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static LLVMMCJITCompilerOptions.Buffer create(int capacity)
Returns a newLLVMMCJITCompilerOptions.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static LLVMMCJITCompilerOptions.Buffer create(long address, int capacity)
Create aLLVMMCJITCompilerOptions.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static LLVMMCJITCompilerOptions.Buffer createSafe(long address, int capacity)
-
mallocStack
public static LLVMMCJITCompilerOptions mallocStack()
Returns a newLLVMMCJITCompilerOptions
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static LLVMMCJITCompilerOptions callocStack()
Returns a newLLVMMCJITCompilerOptions
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static LLVMMCJITCompilerOptions mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newLLVMMCJITCompilerOptions
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static LLVMMCJITCompilerOptions callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newLLVMMCJITCompilerOptions
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static LLVMMCJITCompilerOptions.Buffer mallocStack(int capacity)
Returns a newLLVMMCJITCompilerOptions.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static LLVMMCJITCompilerOptions.Buffer callocStack(int capacity)
Returns a newLLVMMCJITCompilerOptions.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static LLVMMCJITCompilerOptions.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newLLVMMCJITCompilerOptions.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static LLVMMCJITCompilerOptions.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newLLVMMCJITCompilerOptions.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nOptLevel
public static int nOptLevel(long struct)
Unsafe version ofOptLevel()
.
-
nCodeModel
public static int nCodeModel(long struct)
Unsafe version ofCodeModel()
.
-
nNoFramePointerElim
public static int nNoFramePointerElim(long struct)
Unsafe version ofNoFramePointerElim()
.
-
nEnableFastISel
public static int nEnableFastISel(long struct)
Unsafe version ofEnableFastISel()
.
-
nMCJMM
public static long nMCJMM(long struct)
Unsafe version ofMCJMM
.
-
nOptLevel
public static void nOptLevel(long struct, int value)
Unsafe version ofOptLevel
.
-
nCodeModel
public static void nCodeModel(long struct, int value)
Unsafe version ofCodeModel
.
-
nNoFramePointerElim
public static void nNoFramePointerElim(long struct, int value)
Unsafe version ofNoFramePointerElim
.
-
nEnableFastISel
public static void nEnableFastISel(long struct, int value)
Unsafe version ofEnableFastISel
.
-
nMCJMM
public static void nMCJMM(long struct, long value)
Unsafe version ofMCJMM
.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-
validate
public static void validate(long array, int count)
Callsvalidate(long)
for each struct contained in the specified struct array.- Parameters:
array
- the struct array to validatecount
- the number of structs inarray
-
-