Class LLVMOpInfo1

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class LLVMOpInfo1 extends Struct<LLVMOpInfo1> implements NativeResource

 struct LLVMOpInfo1 {
     struct LLVMOpInfoSymbol1 AddSymbol;
     struct LLVMOpInfoSymbol1 SubtractSymbol;
     uint64_t Value;
     uint64_t VariantKind;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • ADDSYMBOL

      public static final int ADDSYMBOL
      The struct member offsets.
    • SUBTRACTSYMBOL

      public static final int SUBTRACTSYMBOL
      The struct member offsets.
    • VALUE

      public static final int VALUE
      The struct member offsets.
    • VARIANTKIND

      public static final int VARIANTKIND
      The struct member offsets.
  • Constructor Details

    • LLVMOpInfo1

      public LLVMOpInfo1(ByteBuffer container)
      Creates a LLVMOpInfo1 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.

  • Method Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<LLVMOpInfo1>
    • AddSymbol

      public LLVMOpInfoSymbol1 AddSymbol()
      Returns:
      a LLVMOpInfoSymbol1 view of the AddSymbol field.
    • SubtractSymbol

      public LLVMOpInfoSymbol1 SubtractSymbol()
      Returns:
      a LLVMOpInfoSymbol1 view of the SubtractSymbol field.
    • Value

      public long Value()
      Returns:
      the value of the Value field.
    • VariantKind

      public long VariantKind()
      Returns:
      the value of the VariantKind field.
    • AddSymbol

      public LLVMOpInfo1 AddSymbol(LLVMOpInfoSymbol1 value)
      Copies the specified LLVMOpInfoSymbol1 to the AddSymbol field.
    • AddSymbol

      public LLVMOpInfo1 AddSymbol(Consumer<LLVMOpInfoSymbol1> consumer)
      Passes the AddSymbol field to the specified Consumer.
    • SubtractSymbol

      public LLVMOpInfo1 SubtractSymbol(LLVMOpInfoSymbol1 value)
      Copies the specified LLVMOpInfoSymbol1 to the SubtractSymbol field.
    • SubtractSymbol

      public LLVMOpInfo1 SubtractSymbol(Consumer<LLVMOpInfoSymbol1> consumer)
      Passes the SubtractSymbol field to the specified Consumer.
    • Value

      public LLVMOpInfo1 Value(long value)
      Sets the specified value to the Value field.
    • VariantKind

      public LLVMOpInfo1 VariantKind(long value)
      Sets the specified value to the VariantKind field.
    • set

      public LLVMOpInfo1 set(LLVMOpInfoSymbol1 AddSymbol, LLVMOpInfoSymbol1 SubtractSymbol, long Value, long VariantKind)
      Initializes this struct with the specified values.
    • set

      public LLVMOpInfo1 set(LLVMOpInfo1 src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static LLVMOpInfo1 malloc()
      Returns a new LLVMOpInfo1 instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

      public static LLVMOpInfo1 calloc()
      Returns a new LLVMOpInfo1 instance allocated with memCalloc. The instance must be explicitly freed.
    • create

      public static LLVMOpInfo1 create()
      Returns a new LLVMOpInfo1 instance allocated with BufferUtils.
    • create

      public static LLVMOpInfo1 create(long address)
      Returns a new LLVMOpInfo1 instance for the specified memory address.
    • createSafe

      public static @Nullable LLVMOpInfo1 createSafe(long address)
      Like create, but returns null if address is NULL.
    • malloc

      public static LLVMOpInfo1.Buffer malloc(int capacity)
      Returns a new LLVMOpInfo1.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static LLVMOpInfo1.Buffer calloc(int capacity)
      Returns a new LLVMOpInfo1.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static LLVMOpInfo1.Buffer create(int capacity)
      Returns a new LLVMOpInfo1.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static LLVMOpInfo1.Buffer create(long address, int capacity)
      Create a LLVMOpInfo1.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

      public static @Nullable LLVMOpInfo1.Buffer createSafe(long address, int capacity)
      Like create, but returns null if address is NULL.
    • malloc

      public static LLVMOpInfo1 malloc(MemoryStack stack)
      Returns a new LLVMOpInfo1 instance allocated on the specified MemoryStack.
      Parameters:
      stack - the stack from which to allocate
    • calloc

      public static LLVMOpInfo1 calloc(MemoryStack stack)
      Returns a new LLVMOpInfo1 instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static LLVMOpInfo1.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new LLVMOpInfo1.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static LLVMOpInfo1.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new LLVMOpInfo1.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nAddSymbol

      public static LLVMOpInfoSymbol1 nAddSymbol(long struct)
      Unsafe version of AddSymbol().
    • nSubtractSymbol

      public static LLVMOpInfoSymbol1 nSubtractSymbol(long struct)
      Unsafe version of SubtractSymbol().
    • nValue

      public static long nValue(long struct)
      Unsafe version of Value().
    • nVariantKind

      public static long nVariantKind(long struct)
      Unsafe version of VariantKind().
    • nAddSymbol

      public static void nAddSymbol(long struct, LLVMOpInfoSymbol1 value)
      Unsafe version of AddSymbol.
    • nSubtractSymbol

      public static void nSubtractSymbol(long struct, LLVMOpInfoSymbol1 value)
      Unsafe version of SubtractSymbol.
    • nValue

      public static void nValue(long struct, long value)
      Unsafe version of Value.
    • nVariantKind

      public static void nVariantKind(long struct, long value)
      Unsafe version of VariantKind.