rocm.bindings.llvm.c.executionengine#
2026-09-24
21 min read time
Advanced Micro Devices, Inc.
Attributes#
Classes#
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
|
(No short description) |
Functions#
|
|
Empty function used to force the linker to link MCJIT. |
|
Empty function used to force the linker to link the LLVM interpreter. |
|
|
===-- Operations on generic values --------------------------------------=== |
===-- Operations on generic values --------------------------------------=== |
|
===-- Operations on generic values --------------------------------------=== |
|
|
===-- Operations on generic values --------------------------------------=== |
|
===-- Operations on generic values --------------------------------------=== |
|
===-- Operations on generic values --------------------------------------=== |
|
===-- Operations on generic values --------------------------------------=== |
|
===-- Operations on generic values --------------------------------------=== |
===-- Operations on execution engines -----------------------------------=== |
|
===-- Operations on execution engines -----------------------------------=== |
|
|
===-- Operations on execution engines -----------------------------------=== |
|
===-- Operations on execution engines -----------------------------------=== |
|
Create an MCJIT execution engine for a module, with the given options. |
Create an MCJIT execution engine for a module, with the given options. |
|
Create an MCJIT execution engine for a module, with the given options. |
|
Create an MCJIT execution engine for a module, with the given options. |
|
|
Create an MCJIT execution engine for a module, with the given options. |
|
Create an MCJIT execution engine for a module, with the given options. |
Create an MCJIT execution engine for a module, with the given options. |
|
|
Create an MCJIT execution engine for a module, with the given options. |
|
Create an MCJIT execution engine for a module, with the given options. |
|
Create an MCJIT execution engine for a module, with the given options. |
|
Create an MCJIT execution engine for a module, with the given options. |
Create an MCJIT execution engine for a module, with the given options. |
|
Create an MCJIT execution engine for a module, with the given options. |
|
|
Create an MCJIT execution engine for a module, with the given options. |
|
Create an MCJIT execution engine for a module, with the given options. |
|
Create an MCJIT execution engine for a module, with the given options. |
|
Create an MCJIT execution engine for a module, with the given options. |
Returns true on error, false on success. |
|
|
Create a simple custom MCJIT memory manager. |
Create a simple custom MCJIT memory manager. |
|
===-- JIT Event Listener functions -------------------------------------=== |
|
===-- JIT Event Listener functions -------------------------------------=== |
|
===-- JIT Event Listener functions -------------------------------------=== |
|
===-- JIT Event Listener functions -------------------------------------=== |
Module Contents#
- rocm.bindings.llvm.c.executionengine.LLVMLinkInMCJIT()#
Empty function used to force the linker to link MCJIT.
Has no effect when called on a pre-built library (dylib interface).
C signature
void LLVMLinkInMCJIT()
- rocm.bindings.llvm.c.executionengine.LLVMLinkInInterpreter()#
Empty function used to force the linker to link the LLVM interpreter.
Has no effect when called on a pre-built library (dylib interface).
C signature
void LLVMLinkInInterpreter()
- class rocm.bindings.llvm.c.executionengine.LLVMOpaqueGenericValue(*args, **kwargs)#
Bases:
rocm.bindings.util.types.Pointer(No short description)
- rocm.bindings.llvm.c.executionengine.LLVMGenericValueRef#
- class rocm.bindings.llvm.c.executionengine.LLVMOpaqueExecutionEngine(*args, **kwargs)#
Bases:
rocm.bindings.util.types.Pointer(No short description)
- rocm.bindings.llvm.c.executionengine.LLVMExecutionEngineRef#
- class rocm.bindings.llvm.c.executionengine.LLVMOpaqueMCJITMemoryManager(*args, **kwargs)#
Bases:
rocm.bindings.util.types.Pointer(No short description)
- rocm.bindings.llvm.c.executionengine.LLVMMCJITMemoryManagerRef#
- class rocm.bindings.llvm.c.executionengine.LLVMMCJITCompilerOptions(*args, **kwargs)#
Bases:
rocm.bindings.util.types.Pointer(No short description)
- OptLevel: Any#
- CodeModel: Any#
- NoFramePointerElim: Any#
- EnableFastISel: Any#
- MCJMM: Any#
- static fromObj(pyobj) Any#
- as_c_void_p() Any#
- rocm.bindings.llvm.c.executionengine.LLVMCreateGenericValueOfInt(Ty, N, IsSigned)#
===– Operations on generic values ————————————–===
- Args:
- Returns:
None: (undocumented)
C signature
LLVMGenericValueRef LLVMCreateGenericValueOfInt(LLVMTypeRef Ty, unsigned long long N, LLVMBool IsSigned)
- rocm.bindings.llvm.c.executionengine.LLVMCreateGenericValueOfPointer(P)#
===– Operations on generic values ————————————–===
C signature
LLVMGenericValueRef LLVMCreateGenericValueOfPointer(void * P)
- rocm.bindings.llvm.c.executionengine.LLVMCreateGenericValueOfFloat(Ty, N)#
===– Operations on generic values ————————————–===
C signature
LLVMGenericValueRef LLVMCreateGenericValueOfFloat(LLVMTypeRef Ty, double N)
- rocm.bindings.llvm.c.executionengine.LLVMGenericValueIntWidth(GenValRef)#
===– Operations on generic values ————————————–===
- Args:
- GenValRef (
LLVMOpaqueGenericValue/object): (undocumented)
- GenValRef (
- Returns:
int: (undocumented)
C signature
unsigned int LLVMGenericValueIntWidth(LLVMGenericValueRef GenValRef)
- rocm.bindings.llvm.c.executionengine.LLVMGenericValueToInt(GenVal, IsSigned)#
===– Operations on generic values ————————————–===
- Args:
- GenVal (
LLVMOpaqueGenericValue/object): (undocumented)
- IsSigned (
int): (undocumented)
- GenVal (
- Returns:
int: (undocumented)
C signature
unsigned long long LLVMGenericValueToInt(LLVMGenericValueRef GenVal, LLVMBool IsSigned)
- rocm.bindings.llvm.c.executionengine.LLVMGenericValueToPointer(GenVal)#
===– Operations on generic values ————————————–===
- Args:
- GenVal (
LLVMOpaqueGenericValue/object): (undocumented)
- GenVal (
- Returns:
None: (undocumented)
C signature
void * LLVMGenericValueToPointer(LLVMGenericValueRef GenVal)
- rocm.bindings.llvm.c.executionengine.LLVMGenericValueToFloat(TyRef, GenVal)#
===– Operations on generic values ————————————–===
- Args:
- TyRef (
Pointer/object): (undocumented)
- GenVal (
LLVMOpaqueGenericValue/object): (undocumented)
- TyRef (
- Returns:
float: (undocumented)
C signature
double LLVMGenericValueToFloat(LLVMTypeRef TyRef, LLVMGenericValueRef GenVal)
- rocm.bindings.llvm.c.executionengine.LLVMDisposeGenericValue(GenVal)#
===– Operations on generic values ————————————–===
- Args:
- GenVal (
LLVMOpaqueGenericValue/object): (undocumented)
- GenVal (
C signature
void LLVMDisposeGenericValue(LLVMGenericValueRef GenVal)
- rocm.bindings.llvm.c.executionengine.LLVMCreateExecutionEngineForModule(M)#
===– Operations on execution engines ———————————–===
- Args:
- Returns:
A
tupleof size 3 that contains (in that order):int: (undocumented)- OutEE (
LLVMOpaqueExecutionEngine): (undocumented)
- OutEE (
C signature
LLVMBool LLVMCreateExecutionEngineForModule(LLVMExecutionEngineRef * OutEE, LLVMModuleRef M, char ** OutError)
- rocm.bindings.llvm.c.executionengine.LLVMCreateInterpreterForModule(M)#
===– Operations on execution engines ———————————–===
- Args:
- Returns:
A
tupleof size 3 that contains (in that order):int: (undocumented)- OutInterp (
LLVMOpaqueExecutionEngine): (undocumented)
- OutInterp (
C signature
LLVMBool LLVMCreateInterpreterForModule(LLVMExecutionEngineRef * OutInterp, LLVMModuleRef M, char ** OutError)
- rocm.bindings.llvm.c.executionengine.LLVMCreateJITCompilerForModule(M, OptLevel)#
===– Operations on execution engines ———————————–===
- Args:
- Returns:
A
tupleof size 3 that contains (in that order):int: (undocumented)- OutJIT (
LLVMOpaqueExecutionEngine): (undocumented)
- OutJIT (
C signature
LLVMBool LLVMCreateJITCompilerForModule(LLVMExecutionEngineRef * OutJIT, LLVMModuleRef M, unsigned int OptLevel, char ** OutError)
- rocm.bindings.llvm.c.executionengine.LLVMInitializeMCJITCompilerOptions(Options, SizeOfOptions)#
===– Operations on execution engines ———————————–===
- Args:
- Options (
LLVMMCJITCompilerOptions/object): (undocumented)
- SizeOfOptions (
int): (undocumented)
- Options (
C signature
void LLVMInitializeMCJITCompilerOptions(struct LLVMMCJITCompilerOptions * Options, size_t SizeOfOptions)
- rocm.bindings.llvm.c.executionengine.LLVMCreateMCJITCompilerForModule(M, Options, SizeOfOptions)#
Create an MCJIT execution engine for a module, with the given options.
It is the responsibility of the caller to ensure that all fields in Options up to the given SizeOfOptions are initialized. It is correct to pass a smaller value of SizeOfOptions that omits some fields. The canonical way of using this is:
LLVMMCJITCompilerOptions options; LLVMInitializeMCJITCompilerOptions(&options, sizeof(options)); … fill in those options you care about LLVMCreateMCJITCompilerForModule(&jit, mod, &options, sizeof(options),
&error);
Note that this is also correct, though possibly suboptimal:
LLVMCreateMCJITCompilerForModule(&jit, mod, 0, 0, &error);
- Args:
- M (
Pointer/object): (undocumented)
- Options (
LLVMMCJITCompilerOptions/object): (undocumented)
- SizeOfOptions (
int): (undocumented)
- M (
- Returns:
A
tupleof size 3 that contains (in that order):int: (undocumented)- OutJIT (
LLVMOpaqueExecutionEngine): (undocumented)
- OutJIT (
C signature
LLVMBool LLVMCreateMCJITCompilerForModule(LLVMExecutionEngineRef * OutJIT, LLVMModuleRef M, struct LLVMMCJITCompilerOptions * Options, size_t SizeOfOptions, char ** OutError)
- rocm.bindings.llvm.c.executionengine.LLVMDisposeExecutionEngine(EE)#
Create an MCJIT execution engine for a module, with the given options.
It is the responsibility of the caller to ensure that all fields in Options up to the given SizeOfOptions are initialized. It is correct to pass a smaller value of SizeOfOptions that omits some fields. The canonical way of using this is:
LLVMMCJITCompilerOptions options; LLVMInitializeMCJITCompilerOptions(&options, sizeof(options)); … fill in those options you care about LLVMCreateMCJITCompilerForModule(&jit, mod, &options, sizeof(options),
&error);
Note that this is also correct, though possibly suboptimal:
LLVMCreateMCJITCompilerForModule(&jit, mod, 0, 0, &error);
- Args:
- EE (
LLVMOpaqueExecutionEngine/object): (undocumented)
- EE (
C signature
void LLVMDisposeExecutionEngine(LLVMExecutionEngineRef EE)
- rocm.bindings.llvm.c.executionengine.LLVMRunStaticConstructors(EE)#
Create an MCJIT execution engine for a module, with the given options.
It is the responsibility of the caller to ensure that all fields in Options up to the given SizeOfOptions are initialized. It is correct to pass a smaller value of SizeOfOptions that omits some fields. The canonical way of using this is:
LLVMMCJITCompilerOptions options; LLVMInitializeMCJITCompilerOptions(&options, sizeof(options)); … fill in those options you care about LLVMCreateMCJITCompilerForModule(&jit, mod, &options, sizeof(options),
&error);
Note that this is also correct, though possibly suboptimal:
LLVMCreateMCJITCompilerForModule(&jit, mod, 0, 0, &error);
- Args:
- EE (
LLVMOpaqueExecutionEngine/object): (undocumented)
- EE (
C signature
void LLVMRunStaticConstructors(LLVMExecutionEngineRef EE)
- rocm.bindings.llvm.c.executionengine.LLVMRunStaticDestructors(EE)#
Create an MCJIT execution engine for a module, with the given options.
It is the responsibility of the caller to ensure that all fields in Options up to the given SizeOfOptions are initialized. It is correct to pass a smaller value of SizeOfOptions that omits some fields. The canonical way of using this is:
LLVMMCJITCompilerOptions options; LLVMInitializeMCJITCompilerOptions(&options, sizeof(options)); … fill in those options you care about LLVMCreateMCJITCompilerForModule(&jit, mod, &options, sizeof(options),
&error);
Note that this is also correct, though possibly suboptimal:
LLVMCreateMCJITCompilerForModule(&jit, mod, 0, 0, &error);
- Args:
- EE (
LLVMOpaqueExecutionEngine/object): (undocumented)
- EE (
C signature
void LLVMRunStaticDestructors(LLVMExecutionEngineRef EE)
- rocm.bindings.llvm.c.executionengine.LLVMRunFunctionAsMain(EE, F, ArgC, ArgV, EnvP)#
Create an MCJIT execution engine for a module, with the given options.
It is the responsibility of the caller to ensure that all fields in Options up to the given SizeOfOptions are initialized. It is correct to pass a smaller value of SizeOfOptions that omits some fields. The canonical way of using this is:
LLVMMCJITCompilerOptions options; LLVMInitializeMCJITCompilerOptions(&options, sizeof(options)); … fill in those options you care about LLVMCreateMCJITCompilerForModule(&jit, mod, &options, sizeof(options),
&error);
Note that this is also correct, though possibly suboptimal:
LLVMCreateMCJITCompilerForModule(&jit, mod, 0, 0, &error);
- Args:
- Returns:
int: (undocumented)
C signature
int LLVMRunFunctionAsMain(LLVMExecutionEngineRef EE, LLVMValueRef F, unsigned int ArgC, const char *const * ArgV, const char *const * EnvP)
- rocm.bindings.llvm.c.executionengine.LLVMRunFunction(EE, F, NumArgs, Args)#
Create an MCJIT execution engine for a module, with the given options.
It is the responsibility of the caller to ensure that all fields in Options up to the given SizeOfOptions are initialized. It is correct to pass a smaller value of SizeOfOptions that omits some fields. The canonical way of using this is:
LLVMMCJITCompilerOptions options; LLVMInitializeMCJITCompilerOptions(&options, sizeof(options)); … fill in those options you care about LLVMCreateMCJITCompilerForModule(&jit, mod, &options, sizeof(options),
&error);
Note that this is also correct, though possibly suboptimal:
LLVMCreateMCJITCompilerForModule(&jit, mod, 0, 0, &error);
- Args:
- EE (
LLVMOpaqueExecutionEngine/object): (undocumented)
- F (
Pointer/object): (undocumented)
- NumArgs (
int): (undocumented)
- Args (
ListOfPointer/object): (undocumented)
- EE (
- Returns:
None: (undocumented)
C signature
LLVMGenericValueRef LLVMRunFunction(LLVMExecutionEngineRef EE, LLVMValueRef F, unsigned int NumArgs, LLVMGenericValueRef * Args)
- rocm.bindings.llvm.c.executionengine.LLVMFreeMachineCodeForFunction(EE, F)#
Create an MCJIT execution engine for a module, with the given options.
It is the responsibility of the caller to ensure that all fields in Options up to the given SizeOfOptions are initialized. It is correct to pass a smaller value of SizeOfOptions that omits some fields. The canonical way of using this is:
LLVMMCJITCompilerOptions options; LLVMInitializeMCJITCompilerOptions(&options, sizeof(options)); … fill in those options you care about LLVMCreateMCJITCompilerForModule(&jit, mod, &options, sizeof(options),
&error);
Note that this is also correct, though possibly suboptimal:
LLVMCreateMCJITCompilerForModule(&jit, mod, 0, 0, &error);
- Args:
- EE (
LLVMOpaqueExecutionEngine/object): (undocumented)
- F (
Pointer/object): (undocumented)
- EE (
C signature
void LLVMFreeMachineCodeForFunction(LLVMExecutionEngineRef EE, LLVMValueRef F)
- rocm.bindings.llvm.c.executionengine.LLVMAddModule(EE, M)#
Create an MCJIT execution engine for a module, with the given options.
It is the responsibility of the caller to ensure that all fields in Options up to the given SizeOfOptions are initialized. It is correct to pass a smaller value of SizeOfOptions that omits some fields. The canonical way of using this is:
LLVMMCJITCompilerOptions options; LLVMInitializeMCJITCompilerOptions(&options, sizeof(options)); … fill in those options you care about LLVMCreateMCJITCompilerForModule(&jit, mod, &options, sizeof(options),
&error);
Note that this is also correct, though possibly suboptimal:
LLVMCreateMCJITCompilerForModule(&jit, mod, 0, 0, &error);
- Args:
- EE (
LLVMOpaqueExecutionEngine/object): (undocumented)
- M (
Pointer/object): (undocumented)
- EE (
C signature
void LLVMAddModule(LLVMExecutionEngineRef EE, LLVMModuleRef M)
- rocm.bindings.llvm.c.executionengine.LLVMRemoveModule(EE, M)#
Create an MCJIT execution engine for a module, with the given options.
It is the responsibility of the caller to ensure that all fields in Options up to the given SizeOfOptions are initialized. It is correct to pass a smaller value of SizeOfOptions that omits some fields. The canonical way of using this is:
LLVMMCJITCompilerOptions options; LLVMInitializeMCJITCompilerOptions(&options, sizeof(options)); … fill in those options you care about LLVMCreateMCJITCompilerForModule(&jit, mod, &options, sizeof(options),
&error);
Note that this is also correct, though possibly suboptimal:
LLVMCreateMCJITCompilerForModule(&jit, mod, 0, 0, &error);
- Args:
- EE (
LLVMOpaqueExecutionEngine/object): (undocumented)
- M (
Pointer/object): (undocumented)
- EE (
- Returns:
A
tupleof size 3 that contains (in that order):int: (undocumented)- OutMod (
LLVMOpaqueModule): (undocumented)
- OutMod (
C signature
LLVMBool LLVMRemoveModule(LLVMExecutionEngineRef EE, LLVMModuleRef M, LLVMModuleRef * OutMod, char ** OutError)
- rocm.bindings.llvm.c.executionengine.LLVMFindFunction(EE, Name)#
Create an MCJIT execution engine for a module, with the given options.
It is the responsibility of the caller to ensure that all fields in Options up to the given SizeOfOptions are initialized. It is correct to pass a smaller value of SizeOfOptions that omits some fields. The canonical way of using this is:
LLVMMCJITCompilerOptions options; LLVMInitializeMCJITCompilerOptions(&options, sizeof(options)); … fill in those options you care about LLVMCreateMCJITCompilerForModule(&jit, mod, &options, sizeof(options),
&error);
Note that this is also correct, though possibly suboptimal:
LLVMCreateMCJITCompilerForModule(&jit, mod, 0, 0, &error);
- Args:
- EE (
LLVMOpaqueExecutionEngine/object): (undocumented)
- Name (
CStr/object): (undocumented)
- EE (
- Returns:
A
tupleof size 2 that contains (in that order):int: (undocumented)- OutFn (
LLVMOpaqueValue): (undocumented)
- OutFn (
C signature
LLVMBool LLVMFindFunction(LLVMExecutionEngineRef EE, const char * Name, LLVMValueRef * OutFn)
- rocm.bindings.llvm.c.executionengine.LLVMRecompileAndRelinkFunction(EE, Fn)#
Create an MCJIT execution engine for a module, with the given options.
It is the responsibility of the caller to ensure that all fields in Options up to the given SizeOfOptions are initialized. It is correct to pass a smaller value of SizeOfOptions that omits some fields. The canonical way of using this is:
LLVMMCJITCompilerOptions options; LLVMInitializeMCJITCompilerOptions(&options, sizeof(options)); … fill in those options you care about LLVMCreateMCJITCompilerForModule(&jit, mod, &options, sizeof(options),
&error);
Note that this is also correct, though possibly suboptimal:
LLVMCreateMCJITCompilerForModule(&jit, mod, 0, 0, &error);
- Args:
- EE (
LLVMOpaqueExecutionEngine/object): (undocumented)
- Fn (
Pointer/object): (undocumented)
- EE (
- Returns:
None: (undocumented)
C signature
void * LLVMRecompileAndRelinkFunction(LLVMExecutionEngineRef EE, LLVMValueRef Fn)
- rocm.bindings.llvm.c.executionengine.LLVMGetExecutionEngineTargetData(EE)#
Create an MCJIT execution engine for a module, with the given options.
It is the responsibility of the caller to ensure that all fields in Options up to the given SizeOfOptions are initialized. It is correct to pass a smaller value of SizeOfOptions that omits some fields. The canonical way of using this is:
LLVMMCJITCompilerOptions options; LLVMInitializeMCJITCompilerOptions(&options, sizeof(options)); … fill in those options you care about LLVMCreateMCJITCompilerForModule(&jit, mod, &options, sizeof(options),
&error);
Note that this is also correct, though possibly suboptimal:
LLVMCreateMCJITCompilerForModule(&jit, mod, 0, 0, &error);
- Args:
- EE (
LLVMOpaqueExecutionEngine/object): (undocumented)
- EE (
- Returns:
None: (undocumented)
C signature
LLVMTargetDataRef LLVMGetExecutionEngineTargetData(LLVMExecutionEngineRef EE)
- rocm.bindings.llvm.c.executionengine.LLVMGetExecutionEngineTargetMachine(EE)#
Create an MCJIT execution engine for a module, with the given options.
It is the responsibility of the caller to ensure that all fields in Options up to the given SizeOfOptions are initialized. It is correct to pass a smaller value of SizeOfOptions that omits some fields. The canonical way of using this is:
LLVMMCJITCompilerOptions options; LLVMInitializeMCJITCompilerOptions(&options, sizeof(options)); … fill in those options you care about LLVMCreateMCJITCompilerForModule(&jit, mod, &options, sizeof(options),
&error);
Note that this is also correct, though possibly suboptimal:
LLVMCreateMCJITCompilerForModule(&jit, mod, 0, 0, &error);
- Args:
- EE (
LLVMOpaqueExecutionEngine/object): (undocumented)
- EE (
- Returns:
None: (undocumented)
C signature
LLVMTargetMachineRef LLVMGetExecutionEngineTargetMachine(LLVMExecutionEngineRef EE)
- rocm.bindings.llvm.c.executionengine.LLVMAddGlobalMapping(EE, Global, Addr)#
Create an MCJIT execution engine for a module, with the given options.
It is the responsibility of the caller to ensure that all fields in Options up to the given SizeOfOptions are initialized. It is correct to pass a smaller value of SizeOfOptions that omits some fields. The canonical way of using this is:
LLVMMCJITCompilerOptions options; LLVMInitializeMCJITCompilerOptions(&options, sizeof(options)); … fill in those options you care about LLVMCreateMCJITCompilerForModule(&jit, mod, &options, sizeof(options),
&error);
Note that this is also correct, though possibly suboptimal:
LLVMCreateMCJITCompilerForModule(&jit, mod, 0, 0, &error);
- Args:
C signature
void LLVMAddGlobalMapping(LLVMExecutionEngineRef EE, LLVMValueRef Global, void * Addr)
- rocm.bindings.llvm.c.executionengine.LLVMGetPointerToGlobal(EE, Global)#
Create an MCJIT execution engine for a module, with the given options.
It is the responsibility of the caller to ensure that all fields in Options up to the given SizeOfOptions are initialized. It is correct to pass a smaller value of SizeOfOptions that omits some fields. The canonical way of using this is:
LLVMMCJITCompilerOptions options; LLVMInitializeMCJITCompilerOptions(&options, sizeof(options)); … fill in those options you care about LLVMCreateMCJITCompilerForModule(&jit, mod, &options, sizeof(options),
&error);
Note that this is also correct, though possibly suboptimal:
LLVMCreateMCJITCompilerForModule(&jit, mod, 0, 0, &error);
- Args:
- EE (
LLVMOpaqueExecutionEngine/object): (undocumented)
- Global (
Pointer/object): (undocumented)
- EE (
- Returns:
None: (undocumented)
C signature
void * LLVMGetPointerToGlobal(LLVMExecutionEngineRef EE, LLVMValueRef Global)
- rocm.bindings.llvm.c.executionengine.LLVMGetGlobalValueAddress(EE, Name)#
Create an MCJIT execution engine for a module, with the given options.
It is the responsibility of the caller to ensure that all fields in Options up to the given SizeOfOptions are initialized. It is correct to pass a smaller value of SizeOfOptions that omits some fields. The canonical way of using this is:
LLVMMCJITCompilerOptions options; LLVMInitializeMCJITCompilerOptions(&options, sizeof(options)); … fill in those options you care about LLVMCreateMCJITCompilerForModule(&jit, mod, &options, sizeof(options),
&error);
Note that this is also correct, though possibly suboptimal:
LLVMCreateMCJITCompilerForModule(&jit, mod, 0, 0, &error);
- Args:
- EE (
LLVMOpaqueExecutionEngine/object): (undocumented)
- Name (
CStr/object): (undocumented)
- EE (
- Returns:
int: (undocumented)
C signature
uint64_t LLVMGetGlobalValueAddress(LLVMExecutionEngineRef EE, const char * Name)
- rocm.bindings.llvm.c.executionengine.LLVMGetFunctionAddress(EE, Name)#
Create an MCJIT execution engine for a module, with the given options.
It is the responsibility of the caller to ensure that all fields in Options up to the given SizeOfOptions are initialized. It is correct to pass a smaller value of SizeOfOptions that omits some fields. The canonical way of using this is:
LLVMMCJITCompilerOptions options; LLVMInitializeMCJITCompilerOptions(&options, sizeof(options)); … fill in those options you care about LLVMCreateMCJITCompilerForModule(&jit, mod, &options, sizeof(options),
&error);
Note that this is also correct, though possibly suboptimal:
LLVMCreateMCJITCompilerForModule(&jit, mod, 0, 0, &error);
- Args:
- EE (
LLVMOpaqueExecutionEngine/object): (undocumented)
- Name (
CStr/object): (undocumented)
- EE (
- Returns:
int: (undocumented)
C signature
uint64_t LLVMGetFunctionAddress(LLVMExecutionEngineRef EE, const char * Name)
- rocm.bindings.llvm.c.executionengine.LLVMExecutionEngineGetErrMsg(EE)#
Returns true on error, false on success.
If true is returned then the error message is copied to OutStr and cleared in the ExecutionEngine instance.
- Args:
- EE (
LLVMOpaqueExecutionEngine/object): (undocumented)
- EE (
- Returns:
A
tupleof size 2 that contains (in that order):
C signature
LLVMBool LLVMExecutionEngineGetErrMsg(LLVMExecutionEngineRef EE, char ** OutError)
- class rocm.bindings.llvm.c.executionengine.LLVMMemoryManagerAllocateCodeSectionCallback(*args, **kwargs)#
Bases:
rocm.bindings.util.types.Pointer(No short description)
- class rocm.bindings.llvm.c.executionengine.LLVMMemoryManagerAllocateDataSectionCallback(*args, **kwargs)#
Bases:
rocm.bindings.util.types.Pointer(No short description)
- class rocm.bindings.llvm.c.executionengine.LLVMMemoryManagerFinalizeMemoryCallback(*args, **kwargs)#
Bases:
rocm.bindings.util.types.Pointer(No short description)
- class rocm.bindings.llvm.c.executionengine.LLVMMemoryManagerDestroyCallback(*args, **kwargs)#
Bases:
rocm.bindings.util.types.Pointer(No short description)
- rocm.bindings.llvm.c.executionengine.LLVMCreateSimpleMCJITMemoryManager(Opaque, AllocateCodeSection, AllocateDataSection, FinalizeMemory, Destroy)#
Create a simple custom MCJIT memory manager.
This memory manager can intercept allocations in a module-oblivious way. This will return NULL if any of the passed functions are NULL.
- Args:
- Opaque (
Pointer/object): An opaque client object to pass back to the callbacks.
- AllocateCodeSection (
LLVMMemoryManagerAllocateCodeSectionCallback/object): Allocate a block of memory for executable code.
- AllocateDataSection (
LLVMMemoryManagerAllocateDataSectionCallback/object): Allocate a block of memory for data.
- FinalizeMemory (
LLVMMemoryManagerFinalizeMemoryCallback/object): Set page permissions and flush cache. Return 0 on success, 1 on error.
- Destroy (
LLVMMemoryManagerDestroyCallback/object): (undocumented)
- Opaque (
- Returns:
None: (undocumented)
C signature
LLVMMCJITMemoryManagerRef LLVMCreateSimpleMCJITMemoryManager(void * Opaque, LLVMMemoryManagerAllocateCodeSectionCallback AllocateCodeSection, LLVMMemoryManagerAllocateDataSectionCallback AllocateDataSection, LLVMMemoryManagerFinalizeMemoryCallback FinalizeMemory, LLVMMemoryManagerDestroyCallback Destroy)
- rocm.bindings.llvm.c.executionengine.LLVMDisposeMCJITMemoryManager(MM)#
Create a simple custom MCJIT memory manager.
This memory manager can intercept allocations in a module-oblivious way. This will return NULL if any of the passed functions are NULL.
- Args:
- MM (
LLVMOpaqueMCJITMemoryManager/object): (undocumented)
- MM (
C signature
void LLVMDisposeMCJITMemoryManager(LLVMMCJITMemoryManagerRef MM)
- rocm.bindings.llvm.c.executionengine.LLVMCreateGDBRegistrationListener()#
===– JIT Event Listener functions ————————————-===
- Returns:
None: (undocumented)
C signature
LLVMJITEventListenerRef LLVMCreateGDBRegistrationListener()
- rocm.bindings.llvm.c.executionengine.LLVMCreateIntelJITEventListener()#
===– JIT Event Listener functions ————————————-===
- Returns:
None: (undocumented)
C signature
LLVMJITEventListenerRef LLVMCreateIntelJITEventListener()