LLVM API Documentation
#include <ExecutionEngine.h>
Public Member Functions | |
| EngineBuilder (ModuleProvider *mp) | |
| EngineBuilder (Module *m) | |
| EngineBuilder & | setEngineKind (EngineKind::Kind w) |
| EngineBuilder & | setJITMemoryManager (JITMemoryManager *jmm) |
| EngineBuilder & | setErrorStr (std::string *e) |
| EngineBuilder & | setOptLevel (CodeGenOpt::Level l) |
| EngineBuilder & | setAllocateGVsWithCode (bool a) |
| ExecutionEngine * | create () |
Definition at line 393 of file ExecutionEngine/ExecutionEngine.h.
| llvm::EngineBuilder::EngineBuilder | ( | ModuleProvider * | mp | ) | [inline] |
EngineBuilder - Constructor for EngineBuilder. If create() is called and is successful, the created engine takes ownership of the module provider.
Definition at line 417 of file ExecutionEngine/ExecutionEngine.h.
| EngineBuilder::EngineBuilder | ( | Module * | m | ) |
EngineBuilder - Overloaded constructor that automatically creates an ExistingModuleProvider for an existing module.
EngineBuilder - Overloaded constructor that automatically creates an ExistingModuleProvider for an existing module.
Definition at line 415 of file ExecutionEngine.cpp.
| EngineBuilder& llvm::EngineBuilder::setEngineKind | ( | EngineKind::Kind | w | ) | [inline] |
setEngineKind - Controls whether the user wants the interpreter, the JIT, or whichever engine works. This option defaults to EngineKind::Either.
Definition at line 427 of file ExecutionEngine/ExecutionEngine.h.
Referenced by LLVMCreateExecutionEngine(), LLVMCreateInterpreter(), and LLVMCreateJITCompiler().
| EngineBuilder& llvm::EngineBuilder::setJITMemoryManager | ( | JITMemoryManager * | jmm | ) | [inline] |
setJITMemoryManager - Sets the memory manager to use. This allows clients to customize their memory allocation policies. If create() is called and is successful, the created engine takes ownership of the memory manager. This option defaults to NULL.
Definition at line 436 of file ExecutionEngine/ExecutionEngine.h.
| EngineBuilder& llvm::EngineBuilder::setErrorStr | ( | std::string * | e | ) | [inline] |
setErrorStr - Set the error string to write to on error. This option defaults to NULL.
Definition at line 443 of file ExecutionEngine/ExecutionEngine.h.
Referenced by LLVMCreateExecutionEngine(), LLVMCreateInterpreter(), and LLVMCreateJITCompiler().
| EngineBuilder& llvm::EngineBuilder::setOptLevel | ( | CodeGenOpt::Level | l | ) | [inline] |
setOptLevel - Set the optimization level for the JIT. This option defaults to CodeGenOpt::Default.
Definition at line 450 of file ExecutionEngine/ExecutionEngine.h.
Referenced by LLVMCreateJITCompiler().
| EngineBuilder& llvm::EngineBuilder::setAllocateGVsWithCode | ( | bool | a | ) | [inline] |
setAllocateGVsWithCode - Sets whether global values should be allocated into the same buffer as code. For most applications this should be set to false. Allocating globals with code breaks freeMachineCodeForFunction and is probably unsafe and bad for performance. However, we have clients who depend on this behavior, so we must support it. This option defaults to false so that users of the new API can safely use the new memory manager and free machine code.
Definition at line 462 of file ExecutionEngine/ExecutionEngine.h.
| ExecutionEngine * EngineBuilder::create | ( | ) |
Definition at line 419 of file ExecutionEngine.cpp.
References llvm::ExecutionEngine::InterpCtor, llvm::EngineKind::Interpreter, llvm::EngineKind::JIT, llvm::ExecutionEngine::JITCtor, and llvm::sys::DynamicLibrary::LoadLibraryPermanently().
Referenced by LLVMCreateExecutionEngine(), LLVMCreateInterpreter(), and LLVMCreateJITCompiler().