Class LLVMMCJITCompilerOptions

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class LLVMMCJITCompilerOptions
    extends Struct
    implements NativeResource

    Layout

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

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • OPTLEVEL, CODEMODEL, NOFRAMEPOINTERELIM, ENABLEFASTISEL, MCJMM

        The struct member offsets.
    • Constructor Detail

      • LLVMMCJITCompilerOptions

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

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • 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.
      • 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.
      • set

        public LLVMMCJITCompilerOptions set​(int OptLevel,
                                            int CodeModel,
                                            boolean NoFramePointerElim,
                                            boolean EnableFastISel,
                                            long MCJMM)
        Initializes this struct with the specified values.
      • 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​(long address)
        Returns a new LLVMMCJITCompilerOptions instance for the specified memory address.
      • callocStack

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

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

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

        public static void validate​(long array,
                                    int count)
        Calls validate(long) for each struct contained in the specified struct array.
        Parameters:
        array - the struct array to validate
        count - the number of structs in array