Class LLVMBitReader

java.lang.Object
org.lwjgl.llvm.LLVMBitReader

public class LLVMBitReader extends Object
  • Method Details

    • nLLVMParseBitcode

      public static int nLLVMParseBitcode(long MemBuf, long OutModule, long OutMessage)
      Unsafe version of: ParseBitcode
    • LLVMParseBitcode

      public static boolean LLVMParseBitcode(long MemBuf, PointerBuffer OutModule, PointerBuffer OutMessage)
      Builds a module from the bitcode in the specified memory buffer, returning a reference to the module via the OutModule parameter. Returns 0 on success. Optionally returns a human-readable error message via OutMessage.

      This is deprecated. Use LLVMParseBitcode2.

    • nLLVMParseBitcode2

      public static int nLLVMParseBitcode2(long MemBuf, long OutModule)
      Unsafe version of: ParseBitcode2
    • LLVMParseBitcode2

      public static boolean LLVMParseBitcode2(long MemBuf, PointerBuffer OutModule)
      Builds a module from the bitcode in the specified memory buffer, returning a reference to the module via the OutModule parameter. Returns 0 on success.
    • nLLVMParseBitcodeInContext

      public static int nLLVMParseBitcodeInContext(long ContextRef, long MemBuf, long OutModule, long OutMessage)
      Unsafe version of: ParseBitcodeInContext
    • LLVMParseBitcodeInContext

      public static boolean LLVMParseBitcodeInContext(long ContextRef, long MemBuf, PointerBuffer OutModule, PointerBuffer OutMessage)
      This is deprecated. Use ParseBitcodeInContext2.
    • nLLVMParseBitcodeInContext2

      public static int nLLVMParseBitcodeInContext2(long ContextRef, long MemBuf, long OutModule)
    • LLVMParseBitcodeInContext2

      public static boolean LLVMParseBitcodeInContext2(long ContextRef, long MemBuf, PointerBuffer OutModule)
    • nLLVMGetBitcodeModuleInContext

      public static int nLLVMGetBitcodeModuleInContext(long ContextRef, long MemBuf, long OutM, long OutMessage)
      Unsafe version of: GetBitcodeModuleInContext
    • LLVMGetBitcodeModuleInContext

      public static boolean LLVMGetBitcodeModuleInContext(long ContextRef, long MemBuf, PointerBuffer OutM, PointerBuffer OutMessage)
      Reads a module from the specified path, returning via the OutMP parameter a module provider which performs lazy deserialization. Returns 0 on success. Optionally returns a human-readable error message via OutMessage. This is deprecated. Use GetBitcodeModuleInContext2.
    • nLLVMGetBitcodeModuleInContext2

      public static int nLLVMGetBitcodeModuleInContext2(long ContextRef, long MemBuf, long OutM)
      Unsafe version of: GetBitcodeModuleInContext2
    • LLVMGetBitcodeModuleInContext2

      public static boolean LLVMGetBitcodeModuleInContext2(long ContextRef, long MemBuf, PointerBuffer OutM)
      Reads a module from the given memory buffer, returning via the OutMP parameter a module provider which performs lazy deserialization.

      Takes ownership of MemBuf if (and only if) the module was read successfully.

      Returns:
      0 on success
    • nLLVMGetBitcodeModule

      public static int nLLVMGetBitcodeModule(long MemBuf, long OutM, long OutMessage)
      Unsafe version of: GetBitcodeModule
    • LLVMGetBitcodeModule

      public static boolean LLVMGetBitcodeModule(long MemBuf, PointerBuffer OutM, PointerBuffer OutMessage)
      This is deprecated. Use GetBitcodeModule2.
    • nLLVMGetBitcodeModule2

      public static int nLLVMGetBitcodeModule2(long MemBuf, long OutM)
    • LLVMGetBitcodeModule2

      public static boolean LLVMGetBitcodeModule2(long MemBuf, PointerBuffer OutM)