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.NativeResourceLayout
struct LLVMMCJITCompilerOptions { unsigned int OptLevel; LLVMCodeModel CodeModel; LLVMBool NoFramePointerElim; LLVMBool EnableFastISel; LLVMMCJITMemoryManagerRef MCJMM; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLLVMMCJITCompilerOptions.BufferAn array ofLLVMMCJITCompilerOptionsstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCODEMODEL
ENABLEFASTISEL
MCJMM
NOFRAMEPOINTERELIM
OPTLEVELThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description LLVMMCJITCompilerOptions(java.nio.ByteBuffer container)Creates aLLVMMCJITCompilerOptionsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static LLVMMCJITCompilerOptionscalloc()Returns a newLLVMMCJITCompilerOptionsinstance allocated withmemCalloc.static LLVMMCJITCompilerOptions.Buffercalloc(int capacity)Returns a newLLVMMCJITCompilerOptions.Bufferinstance allocated withmemCalloc.static LLVMMCJITCompilerOptions.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newLLVMMCJITCompilerOptions.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LLVMMCJITCompilerOptionscalloc(org.lwjgl.system.MemoryStack stack)Returns a newLLVMMCJITCompilerOptionsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LLVMMCJITCompilerOptionscallocStack()Deprecated.static LLVMMCJITCompilerOptions.BuffercallocStack(int capacity)Deprecated.static LLVMMCJITCompilerOptions.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static LLVMMCJITCompilerOptionscallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.intCodeModel()LLVMMCJITCompilerOptionsCodeModel(int value)Sets the specified value to theCodeModelfield.static LLVMMCJITCompilerOptionscreate()Returns a newLLVMMCJITCompilerOptionsinstance allocated withBufferUtils.static LLVMMCJITCompilerOptions.Buffercreate(int capacity)Returns a newLLVMMCJITCompilerOptions.Bufferinstance allocated withBufferUtils.static LLVMMCJITCompilerOptionscreate(long address)Returns a newLLVMMCJITCompilerOptionsinstance for the specified memory address.static LLVMMCJITCompilerOptions.Buffercreate(long address, int capacity)Create aLLVMMCJITCompilerOptions.Bufferinstance at the specified memory.static LLVMMCJITCompilerOptionscreateSafe(long address)static LLVMMCJITCompilerOptions.BuffercreateSafe(long address, int capacity)booleanEnableFastISel()LLVMMCJITCompilerOptionsEnableFastISel(boolean value)Sets the specified value to theEnableFastISelfield.static LLVMMCJITCompilerOptionsmalloc()Returns a newLLVMMCJITCompilerOptionsinstance allocated withmemAlloc.static LLVMMCJITCompilerOptions.Buffermalloc(int capacity)Returns a newLLVMMCJITCompilerOptions.Bufferinstance allocated withmemAlloc.static LLVMMCJITCompilerOptions.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newLLVMMCJITCompilerOptions.Bufferinstance allocated on the specifiedMemoryStack.static LLVMMCJITCompilerOptionsmalloc(org.lwjgl.system.MemoryStack stack)Returns a newLLVMMCJITCompilerOptionsinstance allocated on the specifiedMemoryStack.static LLVMMCJITCompilerOptionsmallocStack()Deprecated.static LLVMMCJITCompilerOptions.BuffermallocStack(int capacity)Deprecated.static LLVMMCJITCompilerOptions.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static LLVMMCJITCompilerOptionsmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.longMCJMM()LLVMMCJITCompilerOptionsMCJMM(long value)Sets the specified value to theMCJMMfield.static intnCodeModel(long struct)Unsafe version ofCodeModel().static voidnCodeModel(long struct, int value)Unsafe version ofCodeModel.static intnEnableFastISel(long struct)Unsafe version ofEnableFastISel().static voidnEnableFastISel(long struct, int value)Unsafe version ofEnableFastISel.static longnMCJMM(long struct)Unsafe version ofMCJMM.static voidnMCJMM(long struct, long value)Unsafe version ofMCJMM.static intnNoFramePointerElim(long struct)Unsafe version ofNoFramePointerElim().static voidnNoFramePointerElim(long struct, int value)Unsafe version ofNoFramePointerElim.booleanNoFramePointerElim()LLVMMCJITCompilerOptionsNoFramePointerElim(boolean value)Sets the specified value to theNoFramePointerElimfield.static intnOptLevel(long struct)Unsafe version ofOptLevel().static voidnOptLevel(long struct, int value)Unsafe version ofOptLevel.intOptLevel()LLVMMCJITCompilerOptionsOptLevel(int value)Sets the specified value to theOptLevelfield.LLVMMCJITCompilerOptionsset(int OptLevel, int CodeModel, boolean NoFramePointerElim, boolean EnableFastISel, long MCJMM)Initializes this struct with the specified values.LLVMMCJITCompilerOptionsset(LLVMMCJITCompilerOptions src)Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
LLVMMCJITCompilerOptions
public LLVMMCJITCompilerOptions(java.nio.ByteBuffer container)
Creates aLLVMMCJITCompilerOptionsinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
OptLevel
public int OptLevel()
- Returns:
- the value of the
OptLevelfield.
-
CodeModel
public int CodeModel()
- Returns:
- the value of the
CodeModelfield.
-
NoFramePointerElim
public boolean NoFramePointerElim()
- Returns:
- the value of the
NoFramePointerElimfield.
-
EnableFastISel
public boolean EnableFastISel()
- Returns:
- the value of the
EnableFastISelfield.
-
MCJMM
public long MCJMM()
- Returns:
- the value of the
MCJMMfield.
-
OptLevel
public LLVMMCJITCompilerOptions OptLevel(int value)
Sets the specified value to theOptLevelfield.
-
CodeModel
public LLVMMCJITCompilerOptions CodeModel(int value)
Sets the specified value to theCodeModelfield.
-
NoFramePointerElim
public LLVMMCJITCompilerOptions NoFramePointerElim(boolean value)
Sets the specified value to theNoFramePointerElimfield.
-
EnableFastISel
public LLVMMCJITCompilerOptions EnableFastISel(boolean value)
Sets the specified value to theEnableFastISelfield.
-
MCJMM
public LLVMMCJITCompilerOptions MCJMM(long value)
Sets the specified value to theMCJMMfield.
-
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 newLLVMMCJITCompilerOptionsinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static LLVMMCJITCompilerOptions calloc()
Returns a newLLVMMCJITCompilerOptionsinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static LLVMMCJITCompilerOptions create()
Returns a newLLVMMCJITCompilerOptionsinstance allocated withBufferUtils.
-
create
public static LLVMMCJITCompilerOptions create(long address)
Returns a newLLVMMCJITCompilerOptionsinstance for the specified memory address.
-
createSafe
@Nullable public static LLVMMCJITCompilerOptions createSafe(long address)
-
malloc
public static LLVMMCJITCompilerOptions.Buffer malloc(int capacity)
Returns a newLLVMMCJITCompilerOptions.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static LLVMMCJITCompilerOptions.Buffer calloc(int capacity)
Returns a newLLVMMCJITCompilerOptions.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static LLVMMCJITCompilerOptions.Buffer create(int capacity)
Returns a newLLVMMCJITCompilerOptions.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static LLVMMCJITCompilerOptions.Buffer create(long address, int capacity)
Create aLLVMMCJITCompilerOptions.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static LLVMMCJITCompilerOptions.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static LLVMMCJITCompilerOptions mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static LLVMMCJITCompilerOptions callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static LLVMMCJITCompilerOptions mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static LLVMMCJITCompilerOptions callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static LLVMMCJITCompilerOptions.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static LLVMMCJITCompilerOptions.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static LLVMMCJITCompilerOptions.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static LLVMMCJITCompilerOptions.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static LLVMMCJITCompilerOptions malloc(org.lwjgl.system.MemoryStack stack)
Returns a newLLVMMCJITCompilerOptionsinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static LLVMMCJITCompilerOptions calloc(org.lwjgl.system.MemoryStack stack)
Returns a newLLVMMCJITCompilerOptionsinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static LLVMMCJITCompilerOptions.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newLLVMMCJITCompilerOptions.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static LLVMMCJITCompilerOptions.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newLLVMMCJITCompilerOptions.Bufferinstance allocated on the specifiedMemoryStackand 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
-
-