Package org.lwjgl.llvm
Class LLVMOpInfo1
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
Layout
struct LLVMOpInfo1 {
struct LLVMOpInfoSymbol1
AddSymbol;
struct LLVMOpInfoSymbol1
SubtractSymbol;
uint64_t Value;
uint64_t VariantKind;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The struct member offsets.static final int
The struct alignment in bytes.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorDescriptionLLVMOpInfo1
(ByteBuffer container) Creates aLLVMOpInfo1
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionAddSymbol
(Consumer<LLVMOpInfoSymbol1> consumer) Passes theAddSymbol
field to the specifiedConsumer
.AddSymbol
(LLVMOpInfoSymbol1 value) Copies the specifiedLLVMOpInfoSymbol1
to theAddSymbol
field.static LLVMOpInfo1
calloc()
Returns a newLLVMOpInfo1
instance allocated withmemCalloc
.static LLVMOpInfo1.Buffer
calloc
(int capacity) Returns a newLLVMOpInfo1.Buffer
instance allocated withmemCalloc
.static LLVMOpInfo1.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newLLVMOpInfo1.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static LLVMOpInfo1
calloc
(MemoryStack stack) Returns a newLLVMOpInfo1
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static LLVMOpInfo1
Deprecated.static LLVMOpInfo1.Buffer
callocStack
(int capacity) Deprecated.static LLVMOpInfo1.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static LLVMOpInfo1
callocStack
(MemoryStack stack) Deprecated.static LLVMOpInfo1
create()
Returns a newLLVMOpInfo1
instance allocated withBufferUtils
.static LLVMOpInfo1.Buffer
create
(int capacity) Returns a newLLVMOpInfo1.Buffer
instance allocated withBufferUtils
.static LLVMOpInfo1
create
(long address) Returns a newLLVMOpInfo1
instance for the specified memory address.static LLVMOpInfo1.Buffer
create
(long address, int capacity) Create aLLVMOpInfo1.Buffer
instance at the specified memory.static LLVMOpInfo1
createSafe
(long address) static LLVMOpInfo1.Buffer
createSafe
(long address, int capacity) static LLVMOpInfo1
malloc()
Returns a newLLVMOpInfo1
instance allocated withmemAlloc
.static LLVMOpInfo1.Buffer
malloc
(int capacity) Returns a newLLVMOpInfo1.Buffer
instance allocated withmemAlloc
.static LLVMOpInfo1.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newLLVMOpInfo1.Buffer
instance allocated on the specifiedMemoryStack
.static LLVMOpInfo1
malloc
(MemoryStack stack) Returns a newLLVMOpInfo1
instance allocated on the specifiedMemoryStack
.static LLVMOpInfo1
Deprecated.static LLVMOpInfo1.Buffer
mallocStack
(int capacity) Deprecated.static LLVMOpInfo1.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static LLVMOpInfo1
mallocStack
(MemoryStack stack) Deprecated.static LLVMOpInfoSymbol1
nAddSymbol
(long struct) Unsafe version ofAddSymbol()
.static void
nAddSymbol
(long struct, LLVMOpInfoSymbol1 value) Unsafe version ofAddSymbol
.static LLVMOpInfoSymbol1
nSubtractSymbol
(long struct) Unsafe version ofSubtractSymbol()
.static void
nSubtractSymbol
(long struct, LLVMOpInfoSymbol1 value) Unsafe version ofSubtractSymbol
.static long
nValue
(long struct) Unsafe version ofValue()
.static void
nValue
(long struct, long value) Unsafe version ofValue
.static long
nVariantKind
(long struct) Unsafe version ofVariantKind()
.static void
nVariantKind
(long struct, long value) Unsafe version ofVariantKind
.set
(LLVMOpInfo1 src) Copies the specified struct data to this struct.set
(LLVMOpInfoSymbol1 AddSymbol, LLVMOpInfoSymbol1 SubtractSymbol, long Value, long VariantKind) Initializes this struct with the specified values.int
sizeof()
Returnssizeof(struct)
.SubtractSymbol
(Consumer<LLVMOpInfoSymbol1> consumer) Passes theSubtractSymbol
field to the specifiedConsumer
.SubtractSymbol
(LLVMOpInfoSymbol1 value) Copies the specifiedLLVMOpInfoSymbol1
to theSubtractSymbol
field.long
Value()
Value
(long value) Sets the specified value to theValue
field.long
VariantKind
(long value) Sets the specified value to theVariantKind
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
ADDSYMBOL
public static final int ADDSYMBOLThe struct member offsets. -
SUBTRACTSYMBOL
public static final int SUBTRACTSYMBOLThe struct member offsets. -
VALUE
public static final int VALUEThe struct member offsets. -
VARIANTKIND
public static final int VARIANTKINDThe struct member offsets.
-
-
Constructor Details
-
LLVMOpInfo1
Creates aLLVMOpInfo1
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<LLVMOpInfo1>
-
AddSymbol
- Returns:
- a
LLVMOpInfoSymbol1
view of theAddSymbol
field.
-
SubtractSymbol
- Returns:
- a
LLVMOpInfoSymbol1
view of theSubtractSymbol
field.
-
Value
public long Value()- Returns:
- the value of the
Value
field.
-
VariantKind
public long VariantKind()- Returns:
- the value of the
VariantKind
field.
-
AddSymbol
Copies the specifiedLLVMOpInfoSymbol1
to theAddSymbol
field. -
AddSymbol
Passes theAddSymbol
field to the specifiedConsumer
. -
SubtractSymbol
Copies the specifiedLLVMOpInfoSymbol1
to theSubtractSymbol
field. -
SubtractSymbol
Passes theSubtractSymbol
field to the specifiedConsumer
. -
Value
Sets the specified value to theValue
field. -
VariantKind
Sets the specified value to theVariantKind
field. -
set
public LLVMOpInfo1 set(LLVMOpInfoSymbol1 AddSymbol, LLVMOpInfoSymbol1 SubtractSymbol, long Value, long VariantKind) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newLLVMOpInfo1
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newLLVMOpInfo1
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newLLVMOpInfo1
instance allocated withBufferUtils
. -
create
Returns a newLLVMOpInfo1
instance for the specified memory address. -
createSafe
-
malloc
Returns a newLLVMOpInfo1.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newLLVMOpInfo1.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newLLVMOpInfo1.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aLLVMOpInfo1.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newLLVMOpInfo1
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newLLVMOpInfo1
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newLLVMOpInfo1.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newLLVMOpInfo1.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nAddSymbol
Unsafe version ofAddSymbol()
. -
nSubtractSymbol
Unsafe version ofSubtractSymbol()
. -
nValue
public static long nValue(long struct) Unsafe version ofValue()
. -
nVariantKind
public static long nVariantKind(long struct) Unsafe version ofVariantKind()
. -
nAddSymbol
Unsafe version ofAddSymbol
. -
nSubtractSymbol
Unsafe version ofSubtractSymbol
. -
nValue
public static void nValue(long struct, long value) Unsafe version ofValue
. -
nVariantKind
public static void nVariantKind(long struct, long value) Unsafe version ofVariantKind
.
-