Class LLVMMCJITCompilerOptions

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class LLVMMCJITCompilerOptions extends Struct<LLVMMCJITCompilerOptions> implements NativeResource

 struct LLVMMCJITCompilerOptions {
     unsigned int OptLevel;
     LLVMCodeModel CodeModel;
     LLVMBool NoFramePointerElim;
     LLVMBool EnableFastISel;
     LLVMMCJITMemoryManagerRef MCJMM;
 }
  • Field Details

    • SIZEOF

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

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

      public static final int OPTLEVEL
      The struct member offsets.
    • CODEMODEL

      public static final int CODEMODEL
      The struct member offsets.
    • NOFRAMEPOINTERELIM

      public static final int NOFRAMEPOINTERELIM
      The struct member offsets.
    • ENABLEFASTISEL

      public static final int ENABLEFASTISEL
      The struct member offsets.
    • MCJMM

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

    • LLVMMCJITCompilerOptions

      public LLVMMCJITCompilerOptions(ByteBuffer container)
      Creates a LLVMMCJITCompilerOptions 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<LLVMMCJITCompilerOptions>
    • OptLevel

      public int OptLevel()
      Returns:
      the value of the OptLevel field.
    • CodeModel

      public int CodeModel()
      Returns:
      the value of the CodeModel field.
    • NoFramePointerElim

      public boolean NoFramePointerElim()
      Returns:
      the value of the NoFramePointerElim field.
    • EnableFastISel

      public boolean EnableFastISel()
      Returns:
      the value of the EnableFastISel field.
    • MCJMM

      public long MCJMM()
      Returns:
      the value of the MCJMM field.
    • OptLevel

      public LLVMMCJITCompilerOptions OptLevel(int value)
      Sets the specified value to the OptLevel field.
    • CodeModel

      public LLVMMCJITCompilerOptions CodeModel(int value)
      Sets the specified value to the CodeModel field.
    • NoFramePointerElim

      public LLVMMCJITCompilerOptions NoFramePointerElim(boolean value)
      Sets the specified value to the NoFramePointerElim field.
    • EnableFastISel

      public LLVMMCJITCompilerOptions EnableFastISel(boolean value)
      Sets the specified value to the EnableFastISel field.
    • MCJMM

      public LLVMMCJITCompilerOptions MCJMM(long value)
      Sets the specified value to the MCJMM field.
    • set

      public LLVMMCJITCompilerOptions set(int OptLevel, int CodeModel, boolean NoFramePointerElim, boolean EnableFastISel, long MCJMM)
      Initializes this struct with the specified values.
    • set

      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static LLVMMCJITCompilerOptions.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new LLVMMCJITCompilerOptions.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
    • nOptLevel

      public static int nOptLevel(long struct)
      Unsafe version of OptLevel().
    • nCodeModel

      public static int nCodeModel(long struct)
      Unsafe version of CodeModel().
    • nNoFramePointerElim

      public static int nNoFramePointerElim(long struct)
      Unsafe version of NoFramePointerElim().
    • nEnableFastISel

      public static int nEnableFastISel(long struct)
      Unsafe version of EnableFastISel().
    • nMCJMM

      public static long nMCJMM(long struct)
      Unsafe version of MCJMM.
    • nOptLevel

      public static void nOptLevel(long struct, int value)
      Unsafe version of OptLevel.
    • nCodeModel

      public static void nCodeModel(long struct, int value)
      Unsafe version of CodeModel.
    • nNoFramePointerElim

      public static void nNoFramePointerElim(long struct, int value)
      Unsafe version of NoFramePointerElim.
    • nEnableFastISel

      public static void nEnableFastISel(long struct, int value)
      Unsafe version of EnableFastISel.
    • nMCJMM

      public static void nMCJMM(long struct, long value)
      Unsafe version of MCJMM.
    • validate

      public static void validate(long struct)
      Validates pointer members that should not be NULL.
      Parameters:
      struct - the struct to validate