Class LLVMOpInfoSymbol1
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.llvm.LLVMOpInfoSymbol1
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class LLVMOpInfoSymbol1 extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceThe initial support in LLVM MC for the most general form of a relocatable expression is "AddSymbol - SubtractSymbol + Offset". For some Darwin targets this full form is encoded in the relocation information so thatAddSymbolandSubtractSymbolcan be link edited independent of each other. Many other platforms only allow a relocatable expression of the formAddSymbol + Offsetto be encoded.The
LLVMOpInfoCallback()for theTagTypevalue of 1 uses the structLLVMOpInfo1. The value of the relocatable expression for the operand, including anyPCadjustment, is passed in to the call back in theValuefield. The symbolic information about the operand is returned using all the fields of the structure with the Offset of the relocatable expression returned in theValuefield. 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. TheVariantKindtype is one of theTargetspecific#definesbelow and is used to print operands like "_foo GOT ", ":lower16:_foo", etc.Layout
struct LLVMOpInfoSymbol1 { uint64_tPresent(); char const *Name(); uint64_tValue(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLLVMOpInfoSymbol1.BufferAn array ofLLVMOpInfoSymbol1structs.
-
Constructor Summary
Constructors Constructor Description LLVMOpInfoSymbol1(java.nio.ByteBuffer container)Creates aLLVMOpInfoSymbol1instance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static 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 LLVMOpInfoSymbol1callocStack()Deprecated.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 LLVMOpInfoSymbol1createSafe(long address)static 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 LLVMOpInfoSymbol1mallocStack()Deprecated.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.java.nio.ByteBufferName()symbol name if notNULLLLVMOpInfoSymbol1Name(java.nio.ByteBuffer value)Sets the address of the specified encoded string to theName()field.java.lang.StringNameString()symbol name if notNULLstatic java.nio.ByteBuffernName(long struct)Unsafe version ofName().static voidnName(long struct, java.nio.ByteBuffer value)Unsafe version ofName.static java.lang.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 presentLLVMOpInfoSymbol1Present(long value)Sets the specified value to thePresent()field.LLVMOpInfoSymbol1set(long Present, java.nio.ByteBuffer Name, long Value)Initializes this struct with the specified values.LLVMOpInfoSymbol1set(LLVMOpInfoSymbol1 src)Copies the specified struct data to this struct.intsizeof()longValue()symbol value if name isNULLLLVMOpInfoSymbol1Value(long value)Sets the specified value to theValue()field.
-
-
-
Constructor Detail
-
LLVMOpInfoSymbol1
public LLVMOpInfoSymbol1(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
Present
public long Present()
1 if this symbol is present
-
Name, NameString
@Nullable public java.nio.ByteBuffer Name() @Nullable public java.lang.String NameString()
symbol name if notNULL
-
Value
public long Value()
symbol value if name isNULL
-
Present
public LLVMOpInfoSymbol1 Present(long value)
Sets the specified value to thePresent()field.
-
Name
public LLVMOpInfoSymbol1 Name(@Nullable java.nio.ByteBuffer value)
Sets the address of the specified encoded string to theName()field.
-
Value
public LLVMOpInfoSymbol1 Value(long value)
Sets the specified value to theValue()field.
-
set
public LLVMOpInfoSymbol1 set(long Present, @Nullable java.nio.ByteBuffer Name, long Value)
Initializes this struct with the specified values.
-
set
public LLVMOpInfoSymbol1 set(LLVMOpInfoSymbol1 src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static LLVMOpInfoSymbol1 malloc()
Returns a newLLVMOpInfoSymbol1instance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static LLVMOpInfoSymbol1 calloc()
Returns a newLLVMOpInfoSymbol1instance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static LLVMOpInfoSymbol1 create()
Returns a newLLVMOpInfoSymbol1instance allocated withBufferUtils.
-
create
public static LLVMOpInfoSymbol1 create(long address)
Returns a newLLVMOpInfoSymbol1instance for the specified memory address.
-
createSafe
@Nullable public static LLVMOpInfoSymbol1 createSafe(long address)
-
malloc
public static LLVMOpInfoSymbol1.Buffer malloc(int capacity)
Returns a newLLVMOpInfoSymbol1.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static LLVMOpInfoSymbol1.Buffer calloc(int capacity)
Returns a newLLVMOpInfoSymbol1.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static LLVMOpInfoSymbol1.Buffer create(int capacity)
Returns a newLLVMOpInfoSymbol1.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static LLVMOpInfoSymbol1.Buffer create(long address, int capacity)
Create aLLVMOpInfoSymbol1.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static LLVMOpInfoSymbol1.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static LLVMOpInfoSymbol1 mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static LLVMOpInfoSymbol1 callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static LLVMOpInfoSymbol1 mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static LLVMOpInfoSymbol1 callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static LLVMOpInfoSymbol1.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static LLVMOpInfoSymbol1.Buffer callocStack(int capacity)
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
public static LLVMOpInfoSymbol1 malloc(org.lwjgl.system.MemoryStack stack)
Returns a newLLVMOpInfoSymbol1instance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static LLVMOpInfoSymbol1 calloc(org.lwjgl.system.MemoryStack stack)
Returns a newLLVMOpInfoSymbol1instance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static LLVMOpInfoSymbol1.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newLLVMOpInfoSymbol1.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static LLVMOpInfoSymbol1.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newLLVMOpInfoSymbol1.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nPresent
public static long nPresent(long struct)
Unsafe version ofPresent().
-
nName
@Nullable public static java.nio.ByteBuffer nName(long struct)
Unsafe version ofName().
-
nNameString
@Nullable public static java.lang.String nNameString(long struct)
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
public static void nName(long struct, @Nullable java.nio.ByteBuffer value)Unsafe version ofName.
-
nValue
public static void nValue(long struct, long value)Unsafe version ofValue.
-
-