Class LLVMOpInfoSymbol1
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
AddSymbol and SubtractSymbol can be link edited independent of each
other. Many other platforms only allow a relocatable expression of the form AddSymbol + Offset to be encoded.
The LLVMOpInfoCallback() for the TagType value of 1 uses the struct LLVMOpInfo1. The value of the relocatable expression for
the operand, including any PC adjustment, is passed in to the call back in the Value field. The symbolic information about the operand
is returned using all the fields of the structure with the Offset of the relocatable expression returned in the Value field. It is possible
that some symbols in the relocatable expression were assembly temporary symbols, for example "Ldata - LpicBase + constant", and only the Values of the
symbols without symbol names are present in the relocation information. The VariantKind type is one of the Target specific
#defines below and is used to print operands like "_foo GOT ", ":lower16:_foo", etc.
Layout
struct LLVMOpInfoSymbol1 {
uint64_t Present();
char const * Name();
uint64_t Value();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.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
ConstructorsConstructorDescriptionLLVMOpInfoSymbol1(ByteBuffer container) Creates aLLVMOpInfoSymbol1instance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic LLVMOpInfoSymbol1calloc()Returns a newLLVMOpInfoSymbol1instance allocated withmemCalloc.static LLVMOpInfoSymbol1.Buffercalloc(int capacity) Returns a newLLVMOpInfoSymbol1.Bufferinstance allocated withmemCalloc.static LLVMOpInfoSymbol1.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newLLVMOpInfoSymbol1.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LLVMOpInfoSymbol1calloc(org.lwjgl.system.MemoryStack stack) Returns a newLLVMOpInfoSymbol1instance allocated on the specifiedMemoryStackand initializes all its bits to zero.static LLVMOpInfoSymbol1Deprecated.static LLVMOpInfoSymbol1.BuffercallocStack(int capacity) Deprecated.static LLVMOpInfoSymbol1.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static LLVMOpInfoSymbol1callocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static LLVMOpInfoSymbol1create()Returns a newLLVMOpInfoSymbol1instance allocated withBufferUtils.static LLVMOpInfoSymbol1.Buffercreate(int capacity) Returns a newLLVMOpInfoSymbol1.Bufferinstance allocated withBufferUtils.static LLVMOpInfoSymbol1create(long address) Returns a newLLVMOpInfoSymbol1instance for the specified memory address.static LLVMOpInfoSymbol1.Buffercreate(long address, int capacity) Create aLLVMOpInfoSymbol1.Bufferinstance at the specified memory.static @Nullable LLVMOpInfoSymbol1createSafe(long address) static @Nullable LLVMOpInfoSymbol1.BuffercreateSafe(long address, int capacity) static LLVMOpInfoSymbol1malloc()Returns a newLLVMOpInfoSymbol1instance allocated withmemAlloc.static LLVMOpInfoSymbol1.Buffermalloc(int capacity) Returns a newLLVMOpInfoSymbol1.Bufferinstance allocated withmemAlloc.static LLVMOpInfoSymbol1.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newLLVMOpInfoSymbol1.Bufferinstance allocated on the specifiedMemoryStack.static LLVMOpInfoSymbol1malloc(org.lwjgl.system.MemoryStack stack) Returns a newLLVMOpInfoSymbol1instance allocated on the specifiedMemoryStack.static LLVMOpInfoSymbol1Deprecated.static LLVMOpInfoSymbol1.BuffermallocStack(int capacity) Deprecated.static LLVMOpInfoSymbol1.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.static LLVMOpInfoSymbol1mallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.@Nullable ByteBufferName()symbol name if notNULLName(@Nullable ByteBuffer value) Sets the address of the specified encoded string to theName()field.@Nullable Stringsymbol name if notNULLstatic @Nullable ByteBuffernName(long struct) Unsafe version ofName().static voidnName(long struct, @Nullable ByteBuffer value) Unsafe version ofName.static @Nullable StringnNameString(long struct) Unsafe version ofNameString().static longnPresent(long struct) Unsafe version ofPresent().static voidnPresent(long struct, long value) Unsafe version ofPresent.static longnValue(long struct) Unsafe version ofValue().static voidnValue(long struct, long value) Unsafe version ofValue.longPresent()1 if this symbol is presentPresent(long value) Sets the specified value to thePresent()field.set(long Present, @Nullable ByteBuffer Name, long Value) Initializes this struct with the specified values.set(LLVMOpInfoSymbol1 src) Copies the specified struct data to this struct.intsizeof()longValue()symbol value if name isNULLValue(long value) Sets the specified value to theValue()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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. -
PRESENT
public static final int PRESENTThe struct member offsets. -
NAME
public static final int NAMEThe struct member offsets. -
VALUE
public static final int VALUEThe struct member offsets.
-
-
Constructor Details
-
LLVMOpInfoSymbol1
Creates aLLVMOpInfoSymbol1instance 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<LLVMOpInfoSymbol1>
-
Present
public long Present()1 if this symbol is present -
Name
symbol name if notNULL -
NameString
symbol name if notNULL -
Value
public long Value()symbol value if name isNULL -
Present
Sets the specified value to thePresent()field. -
Name
Sets the address of the specified encoded string to theName()field. -
Value
Sets the specified value to theValue()field. -
set
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 newLLVMOpInfoSymbol1instance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newLLVMOpInfoSymbol1instance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newLLVMOpInfoSymbol1instance allocated withBufferUtils. -
create
Returns a newLLVMOpInfoSymbol1instance for the specified memory address. -
createSafe
-
malloc
Returns a newLLVMOpInfoSymbol1.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newLLVMOpInfoSymbol1.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newLLVMOpInfoSymbol1.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aLLVMOpInfoSymbol1.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 public static LLVMOpInfoSymbol1.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 LLVMOpInfoSymbol1.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newLLVMOpInfoSymbol1instance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newLLVMOpInfoSymbol1instance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newLLVMOpInfoSymbol1.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newLLVMOpInfoSymbol1.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nPresent
public static long nPresent(long struct) Unsafe version ofPresent(). -
nName
Unsafe version ofName(). -
nNameString
Unsafe version ofNameString(). -
nValue
public static long nValue(long struct) Unsafe version ofValue(). -
nPresent
public static void nPresent(long struct, long value) Unsafe version ofPresent. -
nName
Unsafe version ofName. -
nValue
public static void nValue(long struct, long value) Unsafe version ofValue.
-