| Package | Description |
|---|---|
| org.bytedeco.llvm.global | |
| org.bytedeco.llvm.LLVM |
| Modifier and Type | Method and Description |
|---|---|
static LLVMModuleRef |
LLVM.LLVMCloneModule(LLVMModuleRef M)
Return an exact copy of the specified module.
|
static LLVMModuleRef |
LLVM.LLVMGetGlobalParent(LLVMValueRef Global)
\defgroup LLVMCCoreValueConstantGlobals Global Values
This group contains functions that operate on global values.
|
static LLVMModuleRef |
LLVM.LLVMModuleCreateWithName(BytePointer ModuleID)
Create a new, empty module in the global context.
|
static LLVMModuleRef |
LLVM.LLVMModuleCreateWithName(String ModuleID) |
static LLVMModuleRef |
LLVM.LLVMModuleCreateWithNameInContext(BytePointer ModuleID,
LLVMContextRef C)
Create a new, empty module in a specific context.
|
static LLVMModuleRef |
LLVM.LLVMModuleCreateWithNameInContext(String ModuleID,
LLVMContextRef C) |
| Modifier and Type | Method and Description |
|---|---|
static LLVMErrorRef |
LLVM.createOptimizedJITCompilerForModule(LLVMExecutionEngineRef outJIT,
LLVMModuleRef moduleRef,
BytePointer cpu,
int optLevel)
This function is similar to LLVMCreateJITCompilerForModule() but does CPU specific optimization.
|
static LLVMErrorRef |
LLVM.createOptimizedJITCompilerForModule(PointerPointer outJIT,
LLVMModuleRef moduleRef,
String cpu,
int optLevel) |
static LLVMValueRef |
LLVM.LLVMAddAlias2(LLVMModuleRef M,
LLVMTypeRef ValueTy,
int AddrSpace,
LLVMValueRef Aliasee,
BytePointer Name)
Add a GlobalAlias with the given value type, address space and aliasee.
|
static LLVMValueRef |
LLVM.LLVMAddAlias2(LLVMModuleRef M,
LLVMTypeRef ValueTy,
int AddrSpace,
LLVMValueRef Aliasee,
String Name) |
static LLVMValueRef |
LLVM.LLVMAddFunction(LLVMModuleRef M,
BytePointer Name,
LLVMTypeRef FunctionTy)
Add a function to a module under a specified name.
|
static LLVMValueRef |
LLVM.LLVMAddFunction(LLVMModuleRef M,
String Name,
LLVMTypeRef FunctionTy) |
static LLVMValueRef |
LLVM.LLVMAddGlobal(LLVMModuleRef M,
LLVMTypeRef Ty,
BytePointer Name)
\defgroup LLVMCoreValueConstantGlobalVariable Global Variables
This group contains functions that operate on global variable values.
|
static LLVMValueRef |
LLVM.LLVMAddGlobal(LLVMModuleRef M,
LLVMTypeRef Ty,
String Name) |
static LLVMValueRef |
LLVM.LLVMAddGlobalIFunc(LLVMModuleRef M,
BytePointer Name,
long NameLen,
LLVMTypeRef Ty,
int AddrSpace,
LLVMValueRef Resolver)
Add a global indirect function to a module under a specified name.
|
static LLVMValueRef |
LLVM.LLVMAddGlobalIFunc(LLVMModuleRef M,
String Name,
long NameLen,
LLVMTypeRef Ty,
int AddrSpace,
LLVMValueRef Resolver) |
static LLVMValueRef |
LLVM.LLVMAddGlobalInAddressSpace(LLVMModuleRef M,
LLVMTypeRef Ty,
BytePointer Name,
int AddressSpace) |
static LLVMValueRef |
LLVM.LLVMAddGlobalInAddressSpace(LLVMModuleRef M,
LLVMTypeRef Ty,
String Name,
int AddressSpace) |
static void |
LLVM.LLVMAddModule(LLVMExecutionEngineRef EE,
LLVMModuleRef M) |
static void |
LLVM.LLVMAddModuleFlag(LLVMModuleRef M,
int Behavior,
BytePointer Key,
long KeyLen,
LLVMMetadataRef Val)
Add a module-level flag to the module-level flags metadata if it doesn't
already exist.
|
static void |
LLVM.LLVMAddModuleFlag(LLVMModuleRef M,
int Behavior,
String Key,
long KeyLen,
LLVMMetadataRef Val) |
static void |
LLVM.LLVMAddNamedMetadataOperand(LLVMModuleRef M,
BytePointer Name,
LLVMValueRef Val)
Add an operand to named metadata.
|
static void |
LLVM.LLVMAddNamedMetadataOperand(LLVMModuleRef M,
String Name,
LLVMValueRef Val) |
static void |
LLVM.LLVMAppendModuleInlineAsm(LLVMModuleRef M,
BytePointer Asm,
long Len)
Append inline assembly to a module.
|
static void |
LLVM.LLVMAppendModuleInlineAsm(LLVMModuleRef M,
String Asm,
long Len) |
static LLVMModuleRef |
LLVM.LLVMCloneModule(LLVMModuleRef M)
Return an exact copy of the specified module.
|
static LLVMModuleFlagEntry |
LLVM.LLVMCopyModuleFlagsMetadata(LLVMModuleRef M,
SizeTPointer Len)
Returns the module flags as an array of flag-key-value triples.
|
static LLVMDIBuilderRef |
LLVM.LLVMCreateDIBuilder(LLVMModuleRef M)
Construct a builder for a module and collect unresolved nodes attached
to the module in order to resolve cycles during a call to
\c LLVMDIBuilderFinalize.
|
static LLVMDIBuilderRef |
LLVM.LLVMCreateDIBuilderDisallowUnresolved(LLVMModuleRef M)
Construct a builder for a module, and do not allow for unresolved nodes
attached to the module.
|
static int |
LLVM.LLVMCreateExecutionEngineForModule(LLVMExecutionEngineRef OutEE,
LLVMModuleRef M,
byte[] OutError) |
static int |
LLVM.LLVMCreateExecutionEngineForModule(LLVMExecutionEngineRef OutEE,
LLVMModuleRef M,
ByteBuffer OutError) |
static int |
LLVM.LLVMCreateExecutionEngineForModule(LLVMExecutionEngineRef OutEE,
LLVMModuleRef M,
BytePointer OutError) |
static int |
LLVM.LLVMCreateExecutionEngineForModule(LLVMExecutionEngineRef OutEE,
LLVMModuleRef M,
PointerPointer OutError) |
static int |
LLVM.LLVMCreateExecutionEngineForModule(PointerPointer OutEE,
LLVMModuleRef M,
byte[] OutError) |
static int |
LLVM.LLVMCreateExecutionEngineForModule(PointerPointer OutEE,
LLVMModuleRef M,
ByteBuffer OutError) |
static int |
LLVM.LLVMCreateExecutionEngineForModule(PointerPointer OutEE,
LLVMModuleRef M,
BytePointer OutError) |
static LLVMPassManagerRef |
LLVM.LLVMCreateFunctionPassManagerForModule(LLVMModuleRef M)
Constructs a new function-by-function pass pipeline over the module
provider.
|
static int |
LLVM.LLVMCreateInterpreterForModule(LLVMExecutionEngineRef OutInterp,
LLVMModuleRef M,
byte[] OutError) |
static int |
LLVM.LLVMCreateInterpreterForModule(LLVMExecutionEngineRef OutInterp,
LLVMModuleRef M,
ByteBuffer OutError) |
static int |
LLVM.LLVMCreateInterpreterForModule(LLVMExecutionEngineRef OutInterp,
LLVMModuleRef M,
BytePointer OutError) |
static int |
LLVM.LLVMCreateInterpreterForModule(LLVMExecutionEngineRef OutInterp,
LLVMModuleRef M,
PointerPointer OutError) |
static int |
LLVM.LLVMCreateInterpreterForModule(PointerPointer OutInterp,
LLVMModuleRef M,
byte[] OutError) |
static int |
LLVM.LLVMCreateInterpreterForModule(PointerPointer OutInterp,
LLVMModuleRef M,
ByteBuffer OutError) |
static int |
LLVM.LLVMCreateInterpreterForModule(PointerPointer OutInterp,
LLVMModuleRef M,
BytePointer OutError) |
static int |
LLVM.LLVMCreateJITCompilerForModule(LLVMExecutionEngineRef OutJIT,
LLVMModuleRef M,
int OptLevel,
byte[] OutError) |
static int |
LLVM.LLVMCreateJITCompilerForModule(LLVMExecutionEngineRef OutJIT,
LLVMModuleRef M,
int OptLevel,
ByteBuffer OutError) |
static int |
LLVM.LLVMCreateJITCompilerForModule(LLVMExecutionEngineRef OutJIT,
LLVMModuleRef M,
int OptLevel,
BytePointer OutError) |
static int |
LLVM.LLVMCreateJITCompilerForModule(LLVMExecutionEngineRef OutJIT,
LLVMModuleRef M,
int OptLevel,
PointerPointer OutError) |
static int |
LLVM.LLVMCreateJITCompilerForModule(PointerPointer OutJIT,
LLVMModuleRef M,
int OptLevel,
byte[] OutError) |
static int |
LLVM.LLVMCreateJITCompilerForModule(PointerPointer OutJIT,
LLVMModuleRef M,
int OptLevel,
ByteBuffer OutError) |
static int |
LLVM.LLVMCreateJITCompilerForModule(PointerPointer OutJIT,
LLVMModuleRef M,
int OptLevel,
BytePointer OutError) |
static int |
LLVM.LLVMCreateMCJITCompilerForModule(LLVMExecutionEngineRef OutJIT,
LLVMModuleRef M,
LLVMMCJITCompilerOptions Options,
long SizeOfOptions,
byte[] OutError) |
static int |
LLVM.LLVMCreateMCJITCompilerForModule(LLVMExecutionEngineRef OutJIT,
LLVMModuleRef M,
LLVMMCJITCompilerOptions Options,
long SizeOfOptions,
ByteBuffer OutError) |
static int |
LLVM.LLVMCreateMCJITCompilerForModule(LLVMExecutionEngineRef OutJIT,
LLVMModuleRef M,
LLVMMCJITCompilerOptions Options,
long SizeOfOptions,
BytePointer OutError) |
static int |
LLVM.LLVMCreateMCJITCompilerForModule(LLVMExecutionEngineRef OutJIT,
LLVMModuleRef M,
LLVMMCJITCompilerOptions Options,
long SizeOfOptions,
PointerPointer OutError)
Create an MCJIT execution engine for a module, with the given options.
|
static int |
LLVM.LLVMCreateMCJITCompilerForModule(PointerPointer OutJIT,
LLVMModuleRef M,
LLVMMCJITCompilerOptions Options,
long SizeOfOptions,
byte[] OutError) |
static int |
LLVM.LLVMCreateMCJITCompilerForModule(PointerPointer OutJIT,
LLVMModuleRef M,
LLVMMCJITCompilerOptions Options,
long SizeOfOptions,
ByteBuffer OutError) |
static int |
LLVM.LLVMCreateMCJITCompilerForModule(PointerPointer OutJIT,
LLVMModuleRef M,
LLVMMCJITCompilerOptions Options,
long SizeOfOptions,
BytePointer OutError) |
static LLVMModuleProviderRef |
LLVM.LLVMCreateModuleProviderForExistingModule(LLVMModuleRef M)
Changes the type of M so it can be passed to FunctionPassManagers and the
JIT.
|
static void |
LLVM.LLVMDisposeModule(LLVMModuleRef M)
Destroy a module instance.
|
static void |
LLVM.LLVMDumpModule(LLVMModuleRef M)
Dump a representation of a module to stderr.
|
static int |
LLVM.LLVMGetBitcodeModule(LLVMMemoryBufferRef MemBuf,
LLVMModuleRef OutM,
byte[] OutMessage) |
static int |
LLVM.LLVMGetBitcodeModule(LLVMMemoryBufferRef MemBuf,
LLVMModuleRef OutM,
ByteBuffer OutMessage) |
static int |
LLVM.LLVMGetBitcodeModule(LLVMMemoryBufferRef MemBuf,
LLVMModuleRef OutM,
BytePointer OutMessage) |
static int |
LLVM.LLVMGetBitcodeModule(LLVMMemoryBufferRef MemBuf,
LLVMModuleRef OutM,
PointerPointer OutMessage) |
static int |
LLVM.LLVMGetBitcodeModule2(LLVMMemoryBufferRef MemBuf,
LLVMModuleRef OutM) |
static int |
LLVM.LLVMGetBitcodeModuleInContext(LLVMContextRef ContextRef,
LLVMMemoryBufferRef MemBuf,
LLVMModuleRef OutM,
byte[] OutMessage) |
static int |
LLVM.LLVMGetBitcodeModuleInContext(LLVMContextRef ContextRef,
LLVMMemoryBufferRef MemBuf,
LLVMModuleRef OutM,
ByteBuffer OutMessage) |
static int |
LLVM.LLVMGetBitcodeModuleInContext(LLVMContextRef ContextRef,
LLVMMemoryBufferRef MemBuf,
LLVMModuleRef OutM,
BytePointer OutMessage) |
static int |
LLVM.LLVMGetBitcodeModuleInContext(LLVMContextRef ContextRef,
LLVMMemoryBufferRef MemBuf,
LLVMModuleRef OutM,
PointerPointer OutMessage)
Reads a module from the specified path, returning via the OutMP parameter
a module provider which performs lazy deserialization.
|
static int |
LLVM.LLVMGetBitcodeModuleInContext2(LLVMContextRef ContextRef,
LLVMMemoryBufferRef MemBuf,
LLVMModuleRef OutM)
Reads a module from the given memory buffer, returning via the OutMP
parameter a module provider which performs lazy deserialization.
|
static BytePointer |
LLVM.LLVMGetDataLayout(LLVMModuleRef M) |
static BytePointer |
LLVM.LLVMGetDataLayoutStr(LLVMModuleRef M)
Obtain the data layout for a module.
|
static LLVMValueRef |
LLVM.LLVMGetFirstFunction(LLVMModuleRef M)
Obtain an iterator to the first Function in a Module.
|
static LLVMValueRef |
LLVM.LLVMGetFirstGlobal(LLVMModuleRef M) |
static LLVMValueRef |
LLVM.LLVMGetFirstGlobalAlias(LLVMModuleRef M)
Obtain an iterator to the first GlobalAlias in a Module.
|
static LLVMValueRef |
LLVM.LLVMGetFirstGlobalIFunc(LLVMModuleRef M)
Obtain an iterator to the first GlobalIFunc in a Module.
|
static LLVMNamedMDNodeRef |
LLVM.LLVMGetFirstNamedMetadata(LLVMModuleRef M)
Obtain an iterator to the first NamedMDNode in a Module.
|
static LLVMValueRef |
LLVM.LLVMGetIntrinsicDeclaration(LLVMModuleRef Mod,
int ID,
LLVMTypeRef ParamTypes,
long ParamCount)
Get or insert the declaration of an intrinsic.
|
static LLVMValueRef |
LLVM.LLVMGetIntrinsicDeclaration(LLVMModuleRef Mod,
int ID,
PointerPointer ParamTypes,
long ParamCount) |
static LLVMValueRef |
LLVM.LLVMGetLastFunction(LLVMModuleRef M)
Obtain an iterator to the last Function in a Module.
|
static LLVMValueRef |
LLVM.LLVMGetLastGlobal(LLVMModuleRef M) |
static LLVMValueRef |
LLVM.LLVMGetLastGlobalAlias(LLVMModuleRef M)
Obtain an iterator to the last GlobalAlias in a Module.
|
static LLVMValueRef |
LLVM.LLVMGetLastGlobalIFunc(LLVMModuleRef M)
Obtain an iterator to the last GlobalIFunc in a Module.
|
static LLVMNamedMDNodeRef |
LLVM.LLVMGetLastNamedMetadata(LLVMModuleRef M)
Obtain an iterator to the last NamedMDNode in a Module.
|
static LLVMContextRef |
LLVM.LLVMGetModuleContext(LLVMModuleRef M)
Obtain the context to which this module is associated.
|
static LLVMTargetDataRef |
LLVM.LLVMGetModuleDataLayout(LLVMModuleRef M)
Obtain the data layout for a module.
|
static int |
LLVM.LLVMGetModuleDebugMetadataVersion(LLVMModuleRef Module)
The version of debug metadata that's present in the provided \c Module.
|
static LLVMMetadataRef |
LLVM.LLVMGetModuleFlag(LLVMModuleRef M,
BytePointer Key,
long KeyLen)
Add a module-level flag to the module-level flags metadata if it doesn't
already exist.
|
static LLVMMetadataRef |
LLVM.LLVMGetModuleFlag(LLVMModuleRef M,
String Key,
long KeyLen) |
static BytePointer |
LLVM.LLVMGetModuleIdentifier(LLVMModuleRef M,
SizeTPointer Len)
Obtain the identifier of a module.
|
static BytePointer |
LLVM.LLVMGetModuleInlineAsm(LLVMModuleRef M,
SizeTPointer Len)
Get inline assembly for a module.
|
static LLVMValueRef |
LLVM.LLVMGetNamedFunction(LLVMModuleRef M,
BytePointer Name)
Obtain a Function value from a Module by its name.
|
static LLVMValueRef |
LLVM.LLVMGetNamedFunction(LLVMModuleRef M,
String Name) |
static LLVMValueRef |
LLVM.LLVMGetNamedFunctionWithLength(LLVMModuleRef M,
BytePointer Name,
long Length)
Obtain a Function value from a Module by its name.
|
static LLVMValueRef |
LLVM.LLVMGetNamedFunctionWithLength(LLVMModuleRef M,
String Name,
long Length) |
static LLVMValueRef |
LLVM.LLVMGetNamedGlobal(LLVMModuleRef M,
BytePointer Name) |
static LLVMValueRef |
LLVM.LLVMGetNamedGlobal(LLVMModuleRef M,
String Name) |
static LLVMValueRef |
LLVM.LLVMGetNamedGlobalAlias(LLVMModuleRef M,
BytePointer Name,
long NameLen)
Obtain a GlobalAlias value from a Module by its name.
|
static LLVMValueRef |
LLVM.LLVMGetNamedGlobalAlias(LLVMModuleRef M,
String Name,
long NameLen) |
static LLVMValueRef |
LLVM.LLVMGetNamedGlobalIFunc(LLVMModuleRef M,
BytePointer Name,
long NameLen)
Obtain a GlobalIFunc value from a Module by its name.
|
static LLVMValueRef |
LLVM.LLVMGetNamedGlobalIFunc(LLVMModuleRef M,
String Name,
long NameLen) |
static LLVMValueRef |
LLVM.LLVMGetNamedGlobalWithLength(LLVMModuleRef M,
BytePointer Name,
long Length) |
static LLVMValueRef |
LLVM.LLVMGetNamedGlobalWithLength(LLVMModuleRef M,
String Name,
long Length) |
static LLVMNamedMDNodeRef |
LLVM.LLVMGetNamedMetadata(LLVMModuleRef M,
BytePointer Name,
long NameLen)
Retrieve a NamedMDNode with the given name, returning NULL if no such
node exists.
|
static LLVMNamedMDNodeRef |
LLVM.LLVMGetNamedMetadata(LLVMModuleRef M,
String Name,
long NameLen) |
static int |
LLVM.LLVMGetNamedMetadataNumOperands(LLVMModuleRef M,
BytePointer Name)
Obtain the number of operands for named metadata in a module.
|
static int |
LLVM.LLVMGetNamedMetadataNumOperands(LLVMModuleRef M,
String Name) |
static void |
LLVM.LLVMGetNamedMetadataOperands(LLVMModuleRef M,
BytePointer Name,
LLVMValueRef Dest)
Obtain the named metadata operands for a module.
|
static void |
LLVM.LLVMGetNamedMetadataOperands(LLVMModuleRef M,
String Name,
PointerPointer Dest) |
static LLVMComdatRef |
LLVM.LLVMGetOrInsertComdat(LLVMModuleRef M,
BytePointer Name)
Return the Comdat in the module with the specified name.
|
static LLVMComdatRef |
LLVM.LLVMGetOrInsertComdat(LLVMModuleRef M,
String Name) |
static LLVMNamedMDNodeRef |
LLVM.LLVMGetOrInsertNamedMetadata(LLVMModuleRef M,
BytePointer Name,
long NameLen)
Retrieve a NamedMDNode with the given name, creating a new node if no such
node exists.
|
static LLVMNamedMDNodeRef |
LLVM.LLVMGetOrInsertNamedMetadata(LLVMModuleRef M,
String Name,
long NameLen) |
static BytePointer |
LLVM.LLVMGetSourceFileName(LLVMModuleRef M,
SizeTPointer Len)
Obtain the module's original source file name.
|
static BytePointer |
LLVM.LLVMGetTarget(LLVMModuleRef M)
Obtain the target triple for a module.
|
static LLVMTypeRef |
LLVM.LLVMGetTypeByName(LLVMModuleRef M,
BytePointer Name)
Deprecated: Use LLVMGetTypeByName2 instead.
|
static LLVMTypeRef |
LLVM.LLVMGetTypeByName(LLVMModuleRef M,
String Name) |
static BytePointer |
LLVM.LLVMIntrinsicCopyOverloadedName2(LLVMModuleRef Mod,
int ID,
LLVMTypeRef ParamTypes,
long ParamCount,
SizeTPointer NameLength)
Copies the name of an overloaded intrinsic identified by a given list of
parameter types.
|
static ByteBuffer |
LLVM.LLVMIntrinsicCopyOverloadedName2(LLVMModuleRef Mod,
int ID,
PointerPointer ParamTypes,
long ParamCount,
SizeTPointer NameLength) |
static int |
LLVM.LLVMIsNewDbgInfoFormat(LLVMModuleRef M)
Soon to be deprecated.
|
static int |
LLVM.LLVMLinkModules2(LLVMModuleRef Dest,
LLVMModuleRef Src) |
static LLVMOrcThreadSafeModuleRef |
LLVM.LLVMOrcCreateNewThreadSafeModule(LLVMModuleRef M,
LLVMOrcThreadSafeContextRef TSCtx)
Create a ThreadSafeModule wrapper around the given LLVM module.
|
static int |
LLVM.LLVMParseBitcode(LLVMMemoryBufferRef MemBuf,
LLVMModuleRef OutModule,
byte[] OutMessage) |
static int |
LLVM.LLVMParseBitcode(LLVMMemoryBufferRef MemBuf,
LLVMModuleRef OutModule,
ByteBuffer OutMessage) |
static int |
LLVM.LLVMParseBitcode(LLVMMemoryBufferRef MemBuf,
LLVMModuleRef OutModule,
BytePointer OutMessage) |
static int |
LLVM.LLVMParseBitcode(LLVMMemoryBufferRef MemBuf,
LLVMModuleRef OutModule,
PointerPointer OutMessage)
\defgroup LLVMCBitReader Bit Reader
\ingroup LLVMC
\{
|
static int |
LLVM.LLVMParseBitcode2(LLVMMemoryBufferRef MemBuf,
LLVMModuleRef OutModule) |
static int |
LLVM.LLVMParseBitcodeInContext(LLVMContextRef ContextRef,
LLVMMemoryBufferRef MemBuf,
LLVMModuleRef OutModule,
byte[] OutMessage) |
static int |
LLVM.LLVMParseBitcodeInContext(LLVMContextRef ContextRef,
LLVMMemoryBufferRef MemBuf,
LLVMModuleRef OutModule,
ByteBuffer OutMessage) |
static int |
LLVM.LLVMParseBitcodeInContext(LLVMContextRef ContextRef,
LLVMMemoryBufferRef MemBuf,
LLVMModuleRef OutModule,
BytePointer OutMessage) |
static int |
LLVM.LLVMParseBitcodeInContext(LLVMContextRef ContextRef,
LLVMMemoryBufferRef MemBuf,
LLVMModuleRef OutModule,
PointerPointer OutMessage) |
static int |
LLVM.LLVMParseBitcodeInContext2(LLVMContextRef ContextRef,
LLVMMemoryBufferRef MemBuf,
LLVMModuleRef OutModule) |
static int |
LLVM.LLVMParseIRInContext(LLVMContextRef ContextRef,
LLVMMemoryBufferRef MemBuf,
LLVMModuleRef OutM,
byte[] OutMessage) |
static int |
LLVM.LLVMParseIRInContext(LLVMContextRef ContextRef,
LLVMMemoryBufferRef MemBuf,
LLVMModuleRef OutM,
ByteBuffer OutMessage) |
static int |
LLVM.LLVMParseIRInContext(LLVMContextRef ContextRef,
LLVMMemoryBufferRef MemBuf,
LLVMModuleRef OutM,
BytePointer OutMessage) |
static int |
LLVM.LLVMParseIRInContext(LLVMContextRef ContextRef,
LLVMMemoryBufferRef MemBuf,
LLVMModuleRef OutM,
PointerPointer OutMessage)
Read LLVM IR from a memory buffer and convert it into an in-memory Module
object.
|
static int |
LLVM.LLVMPrintModuleToFile(LLVMModuleRef M,
BytePointer Filename,
byte[] ErrorMessage) |
static int |
LLVM.LLVMPrintModuleToFile(LLVMModuleRef M,
BytePointer Filename,
ByteBuffer ErrorMessage) |
static int |
LLVM.LLVMPrintModuleToFile(LLVMModuleRef M,
BytePointer Filename,
BytePointer ErrorMessage) |
static int |
LLVM.LLVMPrintModuleToFile(LLVMModuleRef M,
BytePointer Filename,
PointerPointer ErrorMessage)
Print a representation of a module to a file.
|
static int |
LLVM.LLVMPrintModuleToFile(LLVMModuleRef M,
String Filename,
byte[] ErrorMessage) |
static int |
LLVM.LLVMPrintModuleToFile(LLVMModuleRef M,
String Filename,
ByteBuffer ErrorMessage) |
static int |
LLVM.LLVMPrintModuleToFile(LLVMModuleRef M,
String Filename,
BytePointer ErrorMessage) |
static BytePointer |
LLVM.LLVMPrintModuleToString(LLVMModuleRef M)
Return a string representation of the module.
|
static int |
LLVM.LLVMRemoveModule(LLVMExecutionEngineRef EE,
LLVMModuleRef M,
LLVMModuleRef OutMod,
byte[] OutError) |
static int |
LLVM.LLVMRemoveModule(LLVMExecutionEngineRef EE,
LLVMModuleRef M,
LLVMModuleRef OutMod,
ByteBuffer OutError) |
static int |
LLVM.LLVMRemoveModule(LLVMExecutionEngineRef EE,
LLVMModuleRef M,
LLVMModuleRef OutMod,
BytePointer OutError) |
static int |
LLVM.LLVMRemoveModule(LLVMExecutionEngineRef EE,
LLVMModuleRef M,
LLVMModuleRef OutMod,
PointerPointer OutError) |
static int |
LLVM.LLVMRemoveModule(LLVMExecutionEngineRef EE,
LLVMModuleRef M,
PointerPointer OutMod,
byte[] OutError) |
static int |
LLVM.LLVMRemoveModule(LLVMExecutionEngineRef EE,
LLVMModuleRef M,
PointerPointer OutMod,
ByteBuffer OutError) |
static int |
LLVM.LLVMRemoveModule(LLVMExecutionEngineRef EE,
LLVMModuleRef M,
PointerPointer OutMod,
BytePointer OutError) |
static LLVMErrorRef |
LLVM.LLVMRunPasses(LLVMModuleRef M,
BytePointer Passes,
LLVMTargetMachineRef TM,
LLVMPassBuilderOptionsRef Options)
Construct and run a set of passes over a module
This function takes a string with the passes that should be used.
|
static LLVMErrorRef |
LLVM.LLVMRunPasses(LLVMModuleRef M,
String Passes,
LLVMTargetMachineRef TM,
LLVMPassBuilderOptionsRef Options) |
static int |
LLVM.LLVMRunPassManager(LLVMPassManagerRef PM,
LLVMModuleRef M)
Initializes, executes on the provided module, and finalizes all of the
passes scheduled in the pass manager.
|
static void |
LLVM.LLVMSetDataLayout(LLVMModuleRef M,
BytePointer DataLayoutStr)
Set the data layout for a module.
|
static void |
LLVM.LLVMSetDataLayout(LLVMModuleRef M,
String DataLayoutStr) |
static void |
LLVM.LLVMSetIsNewDbgInfoFormat(LLVMModuleRef M,
int UseNewFormat)
Soon to be deprecated.
|
static void |
LLVM.LLVMSetModuleDataLayout(LLVMModuleRef M,
LLVMTargetDataRef DL)
Set the data layout for a module.
|
static void |
LLVM.LLVMSetModuleIdentifier(LLVMModuleRef M,
BytePointer Ident,
long Len)
Set the identifier of a module to a string Ident with length Len.
|
static void |
LLVM.LLVMSetModuleIdentifier(LLVMModuleRef M,
String Ident,
long Len) |
static void |
LLVM.LLVMSetModuleInlineAsm(LLVMModuleRef M,
BytePointer Asm)
Deprecated: Use LLVMSetModuleInlineAsm2 instead.
|
static void |
LLVM.LLVMSetModuleInlineAsm(LLVMModuleRef M,
String Asm) |
static void |
LLVM.LLVMSetModuleInlineAsm2(LLVMModuleRef M,
BytePointer Asm,
long Len)
Set inline assembly for a module.
|
static void |
LLVM.LLVMSetModuleInlineAsm2(LLVMModuleRef M,
String Asm,
long Len) |
static void |
LLVM.LLVMSetSourceFileName(LLVMModuleRef M,
BytePointer Name,
long Len)
Set the original source file name of a module to a string Name with length
Len.
|
static void |
LLVM.LLVMSetSourceFileName(LLVMModuleRef M,
String Name,
long Len) |
static void |
LLVM.LLVMSetTarget(LLVMModuleRef M,
BytePointer Triple)
Set the target triple for a module.
|
static void |
LLVM.LLVMSetTarget(LLVMModuleRef M,
String Triple) |
static int |
LLVM.LLVMStripModuleDebugInfo(LLVMModuleRef Module)
Strip debug info in the module if it exists.
|
static int |
LLVM.LLVMTargetMachineEmitToFile(LLVMTargetMachineRef T,
LLVMModuleRef M,
BytePointer Filename,
int codegen,
byte[] ErrorMessage) |
static int |
LLVM.LLVMTargetMachineEmitToFile(LLVMTargetMachineRef T,
LLVMModuleRef M,
BytePointer Filename,
int codegen,
ByteBuffer ErrorMessage) |
static int |
LLVM.LLVMTargetMachineEmitToFile(LLVMTargetMachineRef T,
LLVMModuleRef M,
BytePointer Filename,
int codegen,
BytePointer ErrorMessage) |
static int |
LLVM.LLVMTargetMachineEmitToFile(LLVMTargetMachineRef T,
LLVMModuleRef M,
BytePointer Filename,
int codegen,
PointerPointer ErrorMessage)
Emits an asm or object file for the given module to the filename.
|
static int |
LLVM.LLVMTargetMachineEmitToFile(LLVMTargetMachineRef T,
LLVMModuleRef M,
String Filename,
int codegen,
byte[] ErrorMessage) |
static int |
LLVM.LLVMTargetMachineEmitToFile(LLVMTargetMachineRef T,
LLVMModuleRef M,
String Filename,
int codegen,
ByteBuffer ErrorMessage) |
static int |
LLVM.LLVMTargetMachineEmitToFile(LLVMTargetMachineRef T,
LLVMModuleRef M,
String Filename,
int codegen,
BytePointer ErrorMessage) |
static int |
LLVM.LLVMTargetMachineEmitToMemoryBuffer(LLVMTargetMachineRef T,
LLVMModuleRef M,
int codegen,
byte[] ErrorMessage,
LLVMMemoryBufferRef OutMemBuf) |
static int |
LLVM.LLVMTargetMachineEmitToMemoryBuffer(LLVMTargetMachineRef T,
LLVMModuleRef M,
int codegen,
byte[] ErrorMessage,
PointerPointer OutMemBuf) |
static int |
LLVM.LLVMTargetMachineEmitToMemoryBuffer(LLVMTargetMachineRef T,
LLVMModuleRef M,
int codegen,
ByteBuffer ErrorMessage,
LLVMMemoryBufferRef OutMemBuf) |
static int |
LLVM.LLVMTargetMachineEmitToMemoryBuffer(LLVMTargetMachineRef T,
LLVMModuleRef M,
int codegen,
ByteBuffer ErrorMessage,
PointerPointer OutMemBuf) |
static int |
LLVM.LLVMTargetMachineEmitToMemoryBuffer(LLVMTargetMachineRef T,
LLVMModuleRef M,
int codegen,
BytePointer ErrorMessage,
LLVMMemoryBufferRef OutMemBuf) |
static int |
LLVM.LLVMTargetMachineEmitToMemoryBuffer(LLVMTargetMachineRef T,
LLVMModuleRef M,
int codegen,
BytePointer ErrorMessage,
PointerPointer OutMemBuf) |
static int |
LLVM.LLVMTargetMachineEmitToMemoryBuffer(LLVMTargetMachineRef T,
LLVMModuleRef M,
int codegen,
PointerPointer ErrorMessage,
LLVMMemoryBufferRef OutMemBuf)
Compile the LLVM IR stored in \p M and store the result in \p OutMemBuf.
|
static int |
LLVM.LLVMVerifyModule(LLVMModuleRef M,
int Action,
byte[] OutMessage) |
static int |
LLVM.LLVMVerifyModule(LLVMModuleRef M,
int Action,
ByteBuffer OutMessage) |
static int |
LLVM.LLVMVerifyModule(LLVMModuleRef M,
int Action,
BytePointer OutMessage) |
static int |
LLVM.LLVMVerifyModule(LLVMModuleRef M,
int Action,
PointerPointer OutMessage) |
static int |
LLVM.LLVMWriteBitcodeToFD(LLVMModuleRef M,
int FD,
int ShouldClose,
int Unbuffered)
Writes a module to an open file descriptor.
|
static int |
LLVM.LLVMWriteBitcodeToFile(LLVMModuleRef M,
BytePointer Path)
Writes a module to the specified path.
|
static int |
LLVM.LLVMWriteBitcodeToFile(LLVMModuleRef M,
String Path) |
static int |
LLVM.LLVMWriteBitcodeToFileHandle(LLVMModuleRef M,
int Handle)
Deprecated for LLVMWriteBitcodeToFD.
|
static LLVMMemoryBufferRef |
LLVM.LLVMWriteBitcodeToMemoryBuffer(LLVMModuleRef M)
Writes a module to a new memory buffer and returns it.
|
static LLVMErrorRef |
LLVM.optimizeModule(LLVMModuleRef moduleRef,
BytePointer cpu,
int optLevel,
int sizeLevel)
This function does the standard LLVM optimization.
|
static LLVMErrorRef |
LLVM.optimizeModule(LLVMModuleRef moduleRef,
String cpu,
int optLevel,
int sizeLevel) |
| Modifier and Type | Method and Description |
|---|---|
LLVMErrorRef |
LLVMOrcGenericIRModuleOperationFunction.call(Pointer Ctx,
LLVMModuleRef M) |
Copyright © 2025. All rights reserved.