Class LLVMOpInfo1

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • ADDSYMBOL, SUBTRACTSYMBOL, VALUE, VARIANTKIND

        The struct member offsets.
    • Constructor Detail

      • LLVMOpInfo1

        public LLVMOpInfo1​(java.nio.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 Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • 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​(java.util.function.Consumer<LLVMOpInfoSymbol1> consumer)
        Passes the AddSymbol field to the specified Consumer.
      • SubtractSymbol

        public LLVMOpInfo1 SubtractSymbol​(java.util.function.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​(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​(long address)
        Returns a new LLVMOpInfo1 instance for the specified memory address.
      • createSafe

        @Nullable
        public static LLVMOpInfo1 createSafe​(long address)
        Like create, but returns null if address is NULL.
      • 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

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

        public static LLVMOpInfo1 mallocStack()
        Returns a new LLVMOpInfo1 instance allocated on the thread-local MemoryStack.
      • callocStack

        public static LLVMOpInfo1 callocStack()
        Returns a new LLVMOpInfo1 instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
      • mallocStack

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

        public static LLVMOpInfo1 callocStack​(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
      • callocStack

        public static LLVMOpInfo1.Buffer callocStack​(int capacity)
        Returns a new LLVMOpInfo1.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.
        Parameters:
        capacity - the buffer capacity
      • callocStack

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

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

        public static long nVariantKind​(long struct)
        Unsafe version of VariantKind().
      • 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.