public class LLVMOpInfoSymbol1
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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.
Present – 1 if this symbol is presentName – symbol name if not NULLValue – symbol value if name is NULL
struct LLVMOpInfoSymbol1 {
uint64_t Present;
char const * Name;
uint64_t Value;
}| Modifier and Type | Class and Description |
|---|---|
static class |
LLVMOpInfoSymbol1.Buffer
An array of
LLVMOpInfoSymbol1 structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
NAME
The struct member offsets.
|
static int |
PRESENT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
VALUE
The struct member offsets.
|
| Constructor and Description |
|---|
LLVMOpInfoSymbol1(java.nio.ByteBuffer container)
Creates a
LLVMOpInfoSymbol1 instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static LLVMOpInfoSymbol1 |
calloc()
Returns a new
LLVMOpInfoSymbol1 instance allocated with memCalloc. |
static LLVMOpInfoSymbol1.Buffer |
calloc(int capacity)
Returns a new
LLVMOpInfoSymbol1.Buffer instance allocated with memCalloc. |
static LLVMOpInfoSymbol1 |
callocStack()
Returns a new
LLVMOpInfoSymbol1 instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static LLVMOpInfoSymbol1.Buffer |
callocStack(int capacity)
Returns a new
LLVMOpInfoSymbol1.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static LLVMOpInfoSymbol1.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
LLVMOpInfoSymbol1.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static LLVMOpInfoSymbol1 |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
LLVMOpInfoSymbol1 instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static LLVMOpInfoSymbol1 |
create()
Returns a new
LLVMOpInfoSymbol1 instance allocated with BufferUtils. |
static LLVMOpInfoSymbol1.Buffer |
create(int capacity)
Returns a new
LLVMOpInfoSymbol1.Buffer instance allocated with BufferUtils. |
static LLVMOpInfoSymbol1 |
create(long address)
Returns a new
LLVMOpInfoSymbol1 instance for the specified memory address. |
static LLVMOpInfoSymbol1.Buffer |
create(long address,
int capacity)
Create a
LLVMOpInfoSymbol1.Buffer instance at the specified memory. |
static LLVMOpInfoSymbol1 |
createSafe(long address)
|
static LLVMOpInfoSymbol1.Buffer |
createSafe(long address,
int capacity)
|
static LLVMOpInfoSymbol1 |
malloc()
Returns a new
LLVMOpInfoSymbol1 instance allocated with memAlloc. |
static LLVMOpInfoSymbol1.Buffer |
malloc(int capacity)
Returns a new
LLVMOpInfoSymbol1.Buffer instance allocated with memAlloc. |
static LLVMOpInfoSymbol1 |
mallocStack()
Returns a new
LLVMOpInfoSymbol1 instance allocated on the thread-local MemoryStack. |
static LLVMOpInfoSymbol1.Buffer |
mallocStack(int capacity)
Returns a new
LLVMOpInfoSymbol1.Buffer instance allocated on the thread-local MemoryStack. |
static LLVMOpInfoSymbol1.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
LLVMOpInfoSymbol1.Buffer instance allocated on the specified MemoryStack. |
static LLVMOpInfoSymbol1 |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
LLVMOpInfoSymbol1 instance allocated on the specified MemoryStack. |
java.nio.ByteBuffer |
Name()
Returns a
ByteBuffer view of the null-terminated string pointed to by the Name field. |
LLVMOpInfoSymbol1 |
Name(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to the
Name field. |
java.lang.String |
NameString()
Decodes the null-terminated string pointed to by the
Name field. |
static java.nio.ByteBuffer |
nName(long struct)
Unsafe version of
Name(). |
static void |
nName(long struct,
java.nio.ByteBuffer value)
Unsafe version of
Name. |
static java.lang.String |
nNameString(long struct)
Unsafe version of
NameString(). |
static long |
nPresent(long struct)
Unsafe version of
Present(). |
static void |
nPresent(long struct,
long value)
Unsafe version of
Present. |
static long |
nValue(long struct)
Unsafe version of
Value(). |
static void |
nValue(long struct,
long value)
Unsafe version of
Value. |
long |
Present()
Returns the value of the
Present field. |
LLVMOpInfoSymbol1 |
Present(long value)
Sets the specified value to the
Present field. |
LLVMOpInfoSymbol1 |
set(LLVMOpInfoSymbol1 src)
Copies the specified struct data to this struct.
|
LLVMOpInfoSymbol1 |
set(long Present,
java.nio.ByteBuffer Name,
long Value)
Initializes this struct with the specified values.
|
int |
sizeof() |
long |
Value()
Returns the value of the
Value field. |
LLVMOpInfoSymbol1 |
Value(long value)
Sets the specified value to the
Value field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int PRESENT
public static final int NAME
public static final int VALUE
public LLVMOpInfoSymbol1(java.nio.ByteBuffer container)
LLVMOpInfoSymbol1 instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic long Present()
Present field.@Nullable public java.nio.ByteBuffer Name()
ByteBuffer view of the null-terminated string pointed to by the Name field.@Nullable public java.lang.String NameString()
Name field.public long Value()
Value field.public LLVMOpInfoSymbol1 Present(long value)
Present field.public LLVMOpInfoSymbol1 Name(@Nullable java.nio.ByteBuffer value)
Name field.public LLVMOpInfoSymbol1 Value(long value)
Value field.public LLVMOpInfoSymbol1 set(long Present, @Nullable java.nio.ByteBuffer Name, long Value)
public LLVMOpInfoSymbol1 set(LLVMOpInfoSymbol1 src)
src - the source structpublic static LLVMOpInfoSymbol1 malloc()
LLVMOpInfoSymbol1 instance allocated with memAlloc. The instance must be explicitly freed.public static LLVMOpInfoSymbol1 calloc()
LLVMOpInfoSymbol1 instance allocated with memCalloc. The instance must be explicitly freed.public static LLVMOpInfoSymbol1 create()
LLVMOpInfoSymbol1 instance allocated with BufferUtils.public static LLVMOpInfoSymbol1 create(long address)
LLVMOpInfoSymbol1 instance for the specified memory address.@Nullable public static LLVMOpInfoSymbol1 createSafe(long address)
public static LLVMOpInfoSymbol1.Buffer malloc(int capacity)
LLVMOpInfoSymbol1.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static LLVMOpInfoSymbol1.Buffer calloc(int capacity)
LLVMOpInfoSymbol1.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static LLVMOpInfoSymbol1.Buffer create(int capacity)
LLVMOpInfoSymbol1.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static LLVMOpInfoSymbol1.Buffer create(long address, int capacity)
LLVMOpInfoSymbol1.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static LLVMOpInfoSymbol1.Buffer createSafe(long address, int capacity)
public static LLVMOpInfoSymbol1 mallocStack()
LLVMOpInfoSymbol1 instance allocated on the thread-local MemoryStack.public static LLVMOpInfoSymbol1 callocStack()
LLVMOpInfoSymbol1 instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static LLVMOpInfoSymbol1 mallocStack(org.lwjgl.system.MemoryStack stack)
LLVMOpInfoSymbol1 instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static LLVMOpInfoSymbol1 callocStack(org.lwjgl.system.MemoryStack stack)
LLVMOpInfoSymbol1 instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static LLVMOpInfoSymbol1.Buffer mallocStack(int capacity)
LLVMOpInfoSymbol1.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static LLVMOpInfoSymbol1.Buffer callocStack(int capacity)
LLVMOpInfoSymbol1.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static LLVMOpInfoSymbol1.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
LLVMOpInfoSymbol1.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static LLVMOpInfoSymbol1.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
LLVMOpInfoSymbol1.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static long nPresent(long struct)
Present().@Nullable public static java.nio.ByteBuffer nName(long struct)
Name().@Nullable public static java.lang.String nNameString(long struct)
NameString().public static long nValue(long struct)
Value().public static void nPresent(long struct,
long value)
Present.public static void nName(long struct,
@Nullable
java.nio.ByteBuffer value)
Name.public static void nValue(long struct,
long value)
Value.Copyright LWJGL. All Rights Reserved. License terms.