Package org.lwjgl.llvm
Class LLVMOpInfo1
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct LLVMOpInfo1 {
{@link LLVMOpInfoSymbol1 struct LLVMOpInfoSymbol1} AddSymbol;
{@link LLVMOpInfoSymbol1 struct LLVMOpInfoSymbol1} SubtractSymbol;
uint64_t Value;
uint64_t VariantKind;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct member offsets.static final intThe struct alignment in bytes.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionLLVMOpInfo1(ByteBuffer container) Creates aLLVMOpInfo1instance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionAddSymbol(Consumer<LLVMOpInfoSymbol1> consumer) Passes theAddSymbolfield to the specifiedConsumer.AddSymbol(LLVMOpInfoSymbol1 value) Copies the specifiedLLVMOpInfoSymbol1to theAddSymbolfield.static LLVMOpInfo1calloc()Returns a newLLVMOpInfo1instance allocated withmemCalloc.static LLVMOpInfo1.Buffercalloc(int capacity) Returns a newLLVMOpInfo1.Bufferinstance allocated withmemCalloc.static LLVMOpInfo1.Buffercalloc(int capacity, MemoryStack stack) Returns a newLLVMOpInfo1.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LLVMOpInfo1calloc(MemoryStack stack) Returns a newLLVMOpInfo1instance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LLVMOpInfo1Deprecated.static LLVMOpInfo1.BuffercallocStack(int capacity) Deprecated.static LLVMOpInfo1.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static LLVMOpInfo1callocStack(MemoryStack stack) Deprecated.static LLVMOpInfo1create()Returns a newLLVMOpInfo1instance allocated withBufferUtils.static LLVMOpInfo1.Buffercreate(int capacity) Returns a newLLVMOpInfo1.Bufferinstance allocated withBufferUtils.static LLVMOpInfo1create(long address) Returns a newLLVMOpInfo1instance for the specified memory address.static LLVMOpInfo1.Buffercreate(long address, int capacity) Create aLLVMOpInfo1.Bufferinstance at the specified memory.static @Nullable LLVMOpInfo1createSafe(long address) static @Nullable LLVMOpInfo1.BuffercreateSafe(long address, int capacity) static LLVMOpInfo1malloc()Returns a newLLVMOpInfo1instance allocated withmemAlloc.static LLVMOpInfo1.Buffermalloc(int capacity) Returns a newLLVMOpInfo1.Bufferinstance allocated withmemAlloc.static LLVMOpInfo1.Buffermalloc(int capacity, MemoryStack stack) Returns a newLLVMOpInfo1.Bufferinstance allocated on the specifiedMemoryStack.static LLVMOpInfo1malloc(MemoryStack stack) Returns a newLLVMOpInfo1instance allocated on the specifiedMemoryStack.static LLVMOpInfo1Deprecated.static LLVMOpInfo1.BuffermallocStack(int capacity) Deprecated.static LLVMOpInfo1.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static LLVMOpInfo1mallocStack(MemoryStack stack) Deprecated.static LLVMOpInfoSymbol1nAddSymbol(long struct) Unsafe version ofAddSymbol().static voidnAddSymbol(long struct, LLVMOpInfoSymbol1 value) Unsafe version ofAddSymbol.static LLVMOpInfoSymbol1nSubtractSymbol(long struct) Unsafe version ofSubtractSymbol().static voidnSubtractSymbol(long struct, LLVMOpInfoSymbol1 value) Unsafe version ofSubtractSymbol.static longnValue(long struct) Unsafe version ofValue().static voidnValue(long struct, long value) Unsafe version ofValue.static longnVariantKind(long struct) Unsafe version ofVariantKind().static voidnVariantKind(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.intsizeof()Returnssizeof(struct).SubtractSymbol(Consumer<LLVMOpInfoSymbol1> consumer) Passes theSubtractSymbolfield to the specifiedConsumer.SubtractSymbol(LLVMOpInfoSymbol1 value) Copies the specifiedLLVMOpInfoSymbol1to theSubtractSymbolfield.longValue()Value(long value) Sets the specified value to theValuefield.longVariantKind(long value) Sets the specified value to theVariantKindfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aLLVMOpInfo1instance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<LLVMOpInfo1>
-
AddSymbol
- Returns:
- a
LLVMOpInfoSymbol1view of theAddSymbolfield.
-
SubtractSymbol
- Returns:
- a
LLVMOpInfoSymbol1view of theSubtractSymbolfield.
-
Value
public long Value()- Returns:
- the value of the
Valuefield.
-
VariantKind
public long VariantKind()- Returns:
- the value of the
VariantKindfield.
-
AddSymbol
Copies the specifiedLLVMOpInfoSymbol1to theAddSymbolfield. -
AddSymbol
Passes theAddSymbolfield to the specifiedConsumer. -
SubtractSymbol
Copies the specifiedLLVMOpInfoSymbol1to theSubtractSymbolfield. -
SubtractSymbol
Passes theSubtractSymbolfield to the specifiedConsumer. -
Value
Sets the specified value to theValuefield. -
VariantKind
Sets the specified value to theVariantKindfield. -
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 newLLVMOpInfo1instance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newLLVMOpInfo1instance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newLLVMOpInfo1instance allocated withBufferUtils. -
create
Returns a newLLVMOpInfo1instance for the specified memory address. -
createSafe
-
malloc
Returns a newLLVMOpInfo1.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newLLVMOpInfo1.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newLLVMOpInfo1.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aLLVMOpInfo1.Bufferinstance 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 newLLVMOpInfo1instance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newLLVMOpInfo1instance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newLLVMOpInfo1.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newLLVMOpInfo1.Bufferinstance allocated on the specifiedMemoryStackand 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.
-