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.
struct LLVMOpInfoSymbol1 {
uint64_t Present;
char const * Name;
uint64_t Value;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | LLVMOpInfoSymbol1.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | NAME
The struct member offsets. |
| public static final int | PRESENT
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | VALUE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | LLVMOpInfoSymbol1(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static LLVMOpInfoSymbol1 | |
| public static LLVMOpInfoSymbol1. | calloc(int
the buffer capacity capacity)Returns a new |
| public static LLVMOpInfoSymbol1 | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static LLVMOpInfoSymbol1. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static LLVMOpInfoSymbol1 | |
| public static LLVMOpInfoSymbol1 | |
| public static LLVMOpInfoSymbol1. | |
| public static LLVMOpInfoSymbol1. | |
| protected LLVMOpInfoSymbol1 | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static LLVMOpInfoSymbol1 | |
| public static LLVMOpInfoSymbol1 | |
| public static LLVMOpInfoSymbol1. | create(int
the buffer capacity capacity)Returns a new |
| public static LLVMOpInfoSymbol1. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static LLVMOpInfoSymbol1 | |
| public static LLVMOpInfoSymbol1. | |
| public static LLVMOpInfoSymbol1 | |
| public static LLVMOpInfoSymbol1. | malloc(int
the buffer capacity capacity)Returns a new |
| public static LLVMOpInfoSymbol1 | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static LLVMOpInfoSymbol1. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static LLVMOpInfoSymbol1 | |
| public static LLVMOpInfoSymbol1 | |
| public static LLVMOpInfoSymbol1. | |
| public static LLVMOpInfoSymbol1. | |
| public ByteBuffer | |
| public LLVMOpInfoSymbol1 | |
| public String | |
| public static ByteBuffer | |
| public static void | |
| public static String | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public long | |
| public LLVMOpInfoSymbol1 | |
| public LLVMOpInfoSymbol1 | |
| public LLVMOpInfoSymbol1 | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public long | |
| public LLVMOpInfoSymbol1 |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| NAME | back to summary |
|---|---|
| public static final int NAME The struct member offsets. | |
| PRESENT | back to summary |
|---|---|
| public static final int PRESENT The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| VALUE | back to summary |
|---|---|
| public static final int VALUE The struct member offsets. | |
| LLVMOpInfoSymbol1 | back to summary |
|---|---|
| protected LLVMOpInfoSymbol1(long address, ByteBuffer container) | |
| LLVMOpInfoSymbol1 | back to summary |
|---|---|
| public LLVMOpInfoSymbol1(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static LLVMOpInfoSymbol1 calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static LLVMOpInfoSymbol1. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static LLVMOpInfoSymbol1 calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static LLVMOpInfoSymbol1. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static LLVMOpInfoSymbol1 callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static LLVMOpInfoSymbol1 callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static LLVMOpInfoSymbol1. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static LLVMOpInfoSymbol1. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected LLVMOpInfoSymbol1 create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static LLVMOpInfoSymbol1 create() Returns a new | |
| create | back to summary |
|---|---|
| public static LLVMOpInfoSymbol1 create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static LLVMOpInfoSymbol1. Returns a new
| |
| create | back to summary |
|---|---|
| public static LLVMOpInfoSymbol1. Create a
| |
| createSafe | back to summary |
|---|---|
| public static LLVMOpInfoSymbol1 createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static LLVMOpInfoSymbol1. Like
| |
| malloc | back to summary |
|---|---|
| public static LLVMOpInfoSymbol1 malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static LLVMOpInfoSymbol1. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static LLVMOpInfoSymbol1 malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static LLVMOpInfoSymbol1. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static LLVMOpInfoSymbol1 mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static LLVMOpInfoSymbol1 mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static LLVMOpInfoSymbol1. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static LLVMOpInfoSymbol1. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| Name | back to summary |
|---|---|
| public ByteBuffer Name() symbol name if not
| |
| Name | back to summary |
|---|---|
| public LLVMOpInfoSymbol1 Name(ByteBuffer value) Sets the address of the specified encoded string to the | |
| NameString | back to summary |
|---|---|
| public String NameString() symbol name if not
| |
| nName | back to summary |
|---|---|
| public static ByteBuffer nName(long struct) Unsafe version of
| |
| nName | back to summary |
|---|---|
| public static void nName(long struct, ByteBuffer value) Unsafe version of | |
| nNameString | back to summary |
|---|---|
| public static String nNameString(long struct) Unsafe version of
| |
| nPresent | back to summary |
|---|---|
| public static long nPresent(long struct) Unsafe version of | |
| nPresent | back to summary |
|---|---|
| public static void nPresent(long struct, long value) Unsafe version of | |
| nValue | back to summary |
|---|---|
| public static long nValue(long struct) Unsafe version of | |
| nValue | back to summary |
|---|---|
| public static void nValue(long struct, long value) Unsafe version of | |
| Present | back to summary |
|---|---|
| public long Present() 1 if this symbol is present
| |
| Present | back to summary |
|---|---|
| public LLVMOpInfoSymbol1 Present(long value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public LLVMOpInfoSymbol1 set(long Present, ByteBuffer Name, long Value) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public LLVMOpInfoSymbol1 set(LLVMOpInfoSymbol1 src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| Value | back to summary |
|---|---|
| public long Value() symbol value if name is
| |
| Value | back to summary |
|---|---|
| public LLVMOpInfoSymbol1 Value(long value) Sets the specified value to the | |
LLVMOpInfoSymbol1 structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final LLVMOpInfoSymbol1 |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected LLVMOpInfoSymbol1 | |
| public ByteBuffer | Returns: aByteBuffer view of the null-terminated string pointed to by the LLVMOpInfoSymbol1#Name field.
|
| public LLVMOpInfoSymbol1. | Name(ByteBuffer value)
Sets the address of the specified encoded string to the |
| public String | |
| public long | |
| public LLVMOpInfoSymbol1. | |
| protected LLVMOpInfoSymbol1. | |
| public long | |
| public LLVMOpInfoSymbol1. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final LLVMOpInfoSymbol1 ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| getElementFactory | back to summary |
|---|---|
| protected LLVMOpInfoSymbol1 getElementFactory() Implements abstract org.
| |
| Name | back to summary |
|---|---|
public ByteBuffer Name()
| |
| Name | back to summary |
|---|---|
| public LLVMOpInfoSymbol1. Sets the address of the specified encoded string to the | |
| NameString | back to summary |
|---|---|
public String NameString()
| |
| Present | back to summary |
|---|---|
public long Present()
| |
| Present | back to summary |
|---|---|
| public LLVMOpInfoSymbol1. Sets the specified value to the | |
| self | back to summary |
|---|---|
| protected LLVMOpInfoSymbol1. Implements abstract org.
| |
| Value | back to summary |
|---|---|
public long Value()
| |
| Value | back to summary |
|---|---|
| public LLVMOpInfoSymbol1. Sets the specified value to the | |