LLVM
8.0.1
|
Classes | |
struct | LLVMMCJITCompilerOptions |
Typedefs | |
typedef struct LLVMOpaqueGenericValue * | LLVMGenericValueRef |
typedef struct LLVMOpaqueExecutionEngine * | LLVMExecutionEngineRef |
typedef struct LLVMOpaqueMCJITMemoryManager * | LLVMMCJITMemoryManagerRef |
typedef uint8_t *(* | LLVMMemoryManagerAllocateCodeSectionCallback) (void *Opaque, uintptr_t Size, unsigned Alignment, unsigned SectionID, const char *SectionName) |
typedef uint8_t *(* | LLVMMemoryManagerAllocateDataSectionCallback) (void *Opaque, uintptr_t Size, unsigned Alignment, unsigned SectionID, const char *SectionName, LLVMBool IsReadOnly) |
typedef LLVMBool(* | LLVMMemoryManagerFinalizeMemoryCallback) (void *Opaque, char **ErrMsg) |
typedef void(* | LLVMMemoryManagerDestroyCallback) (void *Opaque) |
typedef struct LLVMOpaqueExecutionEngine* LLVMExecutionEngineRef |
Definition at line 41 of file ExecutionEngine.h.
typedef struct LLVMOpaqueGenericValue* LLVMGenericValueRef |
Definition at line 40 of file ExecutionEngine.h.
typedef struct LLVMOpaqueMCJITMemoryManager* LLVMMCJITMemoryManagerRef |
Definition at line 42 of file ExecutionEngine.h.
typedef uint8_t*(* LLVMMemoryManagerAllocateCodeSectionCallback) (void *Opaque, uintptr_t Size, unsigned Alignment, unsigned SectionID, const char *SectionName) |
Definition at line 155 of file ExecutionEngine.h.
typedef uint8_t*(* LLVMMemoryManagerAllocateDataSectionCallback) (void *Opaque, uintptr_t Size, unsigned Alignment, unsigned SectionID, const char *SectionName, LLVMBool IsReadOnly) |
Definition at line 158 of file ExecutionEngine.h.
typedef void(* LLVMMemoryManagerDestroyCallback) (void *Opaque) |
Definition at line 163 of file ExecutionEngine.h.
Definition at line 161 of file ExecutionEngine.h.
void LLVMAddGlobalMapping | ( | LLVMExecutionEngineRef | EE, |
LLVMValueRef | Global, | ||
void * | Addr | ||
) |
Definition at line 293 of file ExecutionEngineBindings.cpp.
References llvm::unwrap().
void LLVMAddModule | ( | LLVMExecutionEngineRef | EE, |
LLVMModuleRef | M | ||
) |
Definition at line 258 of file ExecutionEngineBindings.cpp.
References llvm::unwrap().
LLVMBool LLVMCreateExecutionEngineForModule | ( | LLVMExecutionEngineRef * | OutEE, |
LLVMModuleRef | M, | ||
char ** | OutError | ||
) |
Definition at line 104 of file ExecutionEngineBindings.cpp.
References llvm::EngineBuilder::create(), llvm::EngineKind::Either, llvm::EngineBuilder::setEngineKind(), llvm::EngineBuilder::setErrorStr(), llvm::unwrap(), and llvm::wrap().
LLVMJITEventListenerRef LLVMCreateGDBRegistrationListener | ( | void | ) |
Definition at line 236 of file GDBRegistrationListener.cpp.
References llvm::JITEventListener::createGDBRegistrationListener(), and llvm::wrap().
LLVMGenericValueRef LLVMCreateGenericValueOfFloat | ( | LLVMTypeRef | Ty, |
double | N | ||
) |
Definition at line 55 of file ExecutionEngineBindings.cpp.
References llvm::Type::DoubleTyID, llvm::GenericValue::DoubleVal, llvm::Type::FloatTyID, llvm::GenericValue::FloatVal, getTypeID(), llvm_unreachable, N, llvm::unwrap(), and llvm::wrap().
LLVMGenericValueRef LLVMCreateGenericValueOfInt | ( | LLVMTypeRef | Ty, |
unsigned long long | N, | ||
LLVMBool | IsSigned | ||
) |
Definition at line 41 of file ExecutionEngineBindings.cpp.
References getBitWidth(), llvm::GenericValue::IntVal, and llvm::wrap().
LLVMGenericValueRef LLVMCreateGenericValueOfPointer | ( | void * | P | ) |
Definition at line 49 of file ExecutionEngineBindings.cpp.
References P, llvm::GenericValue::PointerVal, and llvm::wrap().
LLVMJITEventListenerRef LLVMCreateIntelJITEventListener | ( | void | ) |
Definition at line 419 of file ExecutionEngineBindings.cpp.
References llvm::JITEventListener::createIntelJITEventListener(), and llvm::wrap().
LLVMBool LLVMCreateInterpreterForModule | ( | LLVMExecutionEngineRef * | OutInterp, |
LLVMModuleRef | M, | ||
char ** | OutError | ||
) |
Definition at line 119 of file ExecutionEngineBindings.cpp.
References llvm::EngineBuilder::create(), llvm::EngineKind::Interpreter, llvm::EngineBuilder::setEngineKind(), llvm::EngineBuilder::setErrorStr(), llvm::unwrap(), and llvm::wrap().
LLVMBool LLVMCreateJITCompilerForModule | ( | LLVMExecutionEngineRef * | OutJIT, |
LLVMModuleRef | M, | ||
unsigned | OptLevel, | ||
char ** | OutError | ||
) |
Definition at line 134 of file ExecutionEngineBindings.cpp.
References llvm::EngineBuilder::create(), llvm::EngineKind::JIT, llvm::EngineBuilder::setEngineKind(), llvm::EngineBuilder::setErrorStr(), llvm::EngineBuilder::setOptLevel(), llvm::unwrap(), and llvm::wrap().
LLVMBool LLVMCreateMCJITCompilerForModule | ( | LLVMExecutionEngineRef * | OutJIT, |
LLVMModuleRef | M, | ||
struct LLVMMCJITCompilerOptions * | Options, | ||
size_t | SizeOfOptions, | ||
char ** | OutError | ||
) |
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);
Definition at line 161 of file ExecutionEngineBindings.cpp.
References llvm::AMDGPU::HSAMD::Kernel::Key::Attrs, LLVMMCJITCompilerOptions::CodeModel, llvm::EngineBuilder::create(), LLVMMCJITCompilerOptions::EnableFastISel, llvm::TargetOptions::EnableFastISel, F(), llvm::AttributeList::FunctionIndex, llvm::EngineKind::JIT, LLVMInitializeMCJITCompilerOptions(), LLVMMCJITCompilerOptions::MCJMM, llvm::Intrinsic::memcpy, llvm::Mod, LLVMMCJITCompilerOptions::NoFramePointerElim, LLVMMCJITCompilerOptions::OptLevel, llvm::EngineBuilder::setCodeModel(), llvm::EngineBuilder::setEngineKind(), llvm::EngineBuilder::setErrorStr(), llvm::EngineBuilder::setMCJITMemoryManager(), llvm::EngineBuilder::setOptLevel(), llvm::EngineBuilder::setTargetOptions(), llvm::unwrap(), and llvm::wrap().
LLVMJITEventListenerRef LLVMCreateOProfileJITEventListener | ( | void | ) |
Definition at line 426 of file ExecutionEngineBindings.cpp.
References llvm::JITEventListener::createOProfileJITEventListener(), and llvm::wrap().
LLVMJITEventListenerRef LLVMCreatePerfJITEventListener | ( | void | ) |
Definition at line 433 of file ExecutionEngineBindings.cpp.
References llvm::JITEventListener::createPerfJITEventListener(), and llvm::wrap().
LLVMMCJITMemoryManagerRef LLVMCreateSimpleMCJITMemoryManager | ( | void * | Opaque, |
LLVMMemoryManagerAllocateCodeSectionCallback | AllocateCodeSection, | ||
LLVMMemoryManagerAllocateDataSectionCallback | AllocateDataSection, | ||
LLVMMemoryManagerFinalizeMemoryCallback | FinalizeMemory, | ||
LLVMMemoryManagerDestroyCallback | 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.
Opaque | An opaque client object to pass back to the callbacks. |
AllocateCodeSection | Allocate a block of memory for executable code. |
AllocateDataSection | Allocate a block of memory for data. |
FinalizeMemory | Set page permissions and flush cache. Return 0 on success, 1 on error. |
Definition at line 392 of file ExecutionEngineBindings.cpp.
References functions, and llvm::wrap().
void LLVMDisposeExecutionEngine | ( | LLVMExecutionEngineRef | EE | ) |
Definition at line 217 of file ExecutionEngineBindings.cpp.
References llvm::unwrap().
void LLVMDisposeGenericValue | ( | LLVMGenericValueRef | GenVal | ) |
Definition at line 98 of file ExecutionEngineBindings.cpp.
References llvm::unwrap().
void LLVMDisposeMCJITMemoryManager | ( | LLVMMCJITMemoryManagerRef | MM | ) |
Definition at line 411 of file ExecutionEngineBindings.cpp.
References llvm::unwrap().
LLVMBool LLVMFindFunction | ( | LLVMExecutionEngineRef | EE, |
const char * | Name, | ||
LLVMValueRef * | OutFn | ||
) |
Definition at line 270 of file ExecutionEngineBindings.cpp.
References F(), llvm::unwrap(), and llvm::wrap().
void LLVMFreeMachineCodeForFunction | ( | LLVMExecutionEngineRef | EE, |
LLVMValueRef | F | ||
) |
Definition at line 255 of file ExecutionEngineBindings.cpp.
unsigned LLVMGenericValueIntWidth | ( | LLVMGenericValueRef | GenValRef | ) |
Definition at line 70 of file ExecutionEngineBindings.cpp.
References llvm::unwrap().
double LLVMGenericValueToFloat | ( | LLVMTypeRef | TyRef, |
LLVMGenericValueRef | GenVal | ||
) |
Definition at line 87 of file ExecutionEngineBindings.cpp.
References llvm::Type::DoubleTyID, llvm::Type::FloatTyID, getTypeID(), llvm_unreachable, and llvm::unwrap().
unsigned long long LLVMGenericValueToInt | ( | LLVMGenericValueRef | GenVal, |
LLVMBool | IsSigned | ||
) |
Definition at line 74 of file ExecutionEngineBindings.cpp.
References llvm::APInt::getSExtValue(), llvm::APInt::getZExtValue(), llvm::GenericValue::IntVal, and llvm::unwrap().
void* LLVMGenericValueToPointer | ( | LLVMGenericValueRef | GenVal | ) |
Definition at line 83 of file ExecutionEngineBindings.cpp.
References llvm::unwrap().
LLVMTargetDataRef LLVMGetExecutionEngineTargetData | ( | LLVMExecutionEngineRef | EE | ) |
Definition at line 284 of file ExecutionEngineBindings.cpp.
References llvm::unwrap(), and llvm::wrap().
LLVMTargetMachineRef LLVMGetExecutionEngineTargetMachine | ( | LLVMExecutionEngineRef | EE | ) |
Definition at line 289 of file ExecutionEngineBindings.cpp.
References llvm::unwrap(), and llvm::wrap().
uint64_t LLVMGetFunctionAddress | ( | LLVMExecutionEngineRef | EE, |
const char * | Name | ||
) |
Definition at line 308 of file ExecutionEngineBindings.cpp.
References assert(), Size, llvm::StringRef::str(), and llvm::unwrap().
uint64_t LLVMGetGlobalValueAddress | ( | LLVMExecutionEngineRef | EE, |
const char * | Name | ||
) |
Definition at line 304 of file ExecutionEngineBindings.cpp.
References llvm::unwrap().
void* LLVMGetPointerToGlobal | ( | LLVMExecutionEngineRef | EE, |
LLVMValueRef | Global | ||
) |
Definition at line 298 of file ExecutionEngineBindings.cpp.
References llvm::unwrap().
void LLVMInitializeMCJITCompilerOptions | ( | struct LLVMMCJITCompilerOptions * | Options, |
size_t | SizeOfOptions | ||
) |
Definition at line 151 of file ExecutionEngineBindings.cpp.
References LLVMMCJITCompilerOptions::CodeModel, LLVMCodeModelJITDefault, llvm::Intrinsic::memcpy, and llvm::Intrinsic::memset.
Referenced by LLVMCreateMCJITCompilerForModule().
void LLVMLinkInInterpreter | ( | void | ) |
Definition at line 31 of file Interpreter.cpp.
void* LLVMRecompileAndRelinkFunction | ( | LLVMExecutionEngineRef | EE, |
LLVMValueRef | Fn | ||
) |
Definition at line 279 of file ExecutionEngineBindings.cpp.
LLVMBool LLVMRemoveModule | ( | LLVMExecutionEngineRef | EE, |
LLVMModuleRef | M, | ||
LLVMModuleRef * | OutMod, | ||
char ** | OutError | ||
) |
Definition at line 262 of file ExecutionEngineBindings.cpp.
References llvm::Mod, llvm::unwrap(), and llvm::wrap().
LLVMGenericValueRef LLVMRunFunction | ( | LLVMExecutionEngineRef | EE, |
LLVMValueRef | F, | ||
unsigned | NumArgs, | ||
LLVMGenericValueRef * | Args | ||
) |
Definition at line 240 of file ExecutionEngineBindings.cpp.
References I, llvm::unwrap(), and llvm::wrap().
int LLVMRunFunctionAsMain | ( | LLVMExecutionEngineRef | EE, |
LLVMValueRef | F, | ||
unsigned | ArgC, | ||
const char *const * | ArgV, | ||
const char *const * | EnvP | ||
) |
Definition at line 231 of file ExecutionEngineBindings.cpp.
References llvm::unwrap().
void LLVMRunStaticConstructors | ( | LLVMExecutionEngineRef | EE | ) |
Definition at line 221 of file ExecutionEngineBindings.cpp.
References llvm::unwrap().
void LLVMRunStaticDestructors | ( | LLVMExecutionEngineRef | EE | ) |
Definition at line 226 of file ExecutionEngineBindings.cpp.
References llvm::unwrap().