Package org.lwjgl.llvm
Class LLVMBitReader
java.lang.Object
org.lwjgl.llvm.LLVMBitReader
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Contains the function pointers loaded fromLLVMCore.getLibrary()
. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
LLVMGetBitcodeModule
(long MemBuf, PointerBuffer OutM, PointerBuffer OutMessage) This is deprecated.static boolean
LLVMGetBitcodeModule2
(long MemBuf, PointerBuffer OutM) static boolean
LLVMGetBitcodeModuleInContext
(long ContextRef, long MemBuf, PointerBuffer OutM, PointerBuffer OutMessage) Reads a module from the specified path, returning via theOutMP
parameter a module provider which performs lazy deserialization.static boolean
LLVMGetBitcodeModuleInContext2
(long ContextRef, long MemBuf, PointerBuffer OutM) Reads a module from the given memory buffer, returning via theOutMP
parameter a module provider which performs lazy deserialization.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 theOutModule
parameter.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 theOutModule
parameter.static boolean
LLVMParseBitcodeInContext
(long ContextRef, long MemBuf, PointerBuffer OutModule, PointerBuffer OutMessage) This is deprecated.static boolean
LLVMParseBitcodeInContext2
(long ContextRef, long MemBuf, PointerBuffer OutModule) static int
nLLVMGetBitcodeModule
(long MemBuf, long OutM, long OutMessage) Unsafe version of:GetBitcodeModule
static int
nLLVMGetBitcodeModule2
(long MemBuf, long OutM) static int
nLLVMGetBitcodeModuleInContext
(long ContextRef, long MemBuf, long OutM, long OutMessage) Unsafe version of:GetBitcodeModuleInContext
static int
nLLVMGetBitcodeModuleInContext2
(long ContextRef, long MemBuf, long OutM) Unsafe version of:GetBitcodeModuleInContext2
static int
nLLVMParseBitcode
(long MemBuf, long OutModule, long OutMessage) Unsafe version of:ParseBitcode
static int
nLLVMParseBitcode2
(long MemBuf, long OutModule) Unsafe version of:ParseBitcode2
static int
nLLVMParseBitcodeInContext
(long ContextRef, long MemBuf, long OutModule, long OutMessage) Unsafe version of:ParseBitcodeInContext
static int
nLLVMParseBitcodeInContext2
(long ContextRef, long MemBuf, long OutModule)
-
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 theOutModule
parameter. Returns 0 on success. Optionally returns a human-readable error message viaOutMessage
.This is deprecated. Use LLVMParseBitcode2.
-
nLLVMParseBitcode2
public static int nLLVMParseBitcode2(long MemBuf, long OutModule) Unsafe version of:ParseBitcode2
-
LLVMParseBitcode2
Builds a module from the bitcode in the specified memory buffer, returning a reference to the module via theOutModule
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. UseParseBitcodeInContext2
. -
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 theOutMP
parameter a module provider which performs lazy deserialization. Returns 0 on success. Optionally returns a human-readable error message viaOutMessage
. This is deprecated. UseGetBitcodeModuleInContext2
. -
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 theOutMP
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. UseGetBitcodeModule2
. -
nLLVMGetBitcodeModule2
public static int nLLVMGetBitcodeModule2(long MemBuf, long OutM) -
LLVMGetBitcodeModule2
-