|
LLVM
7.0.0
|
A pre-fabricated ORC JIT stack that can serve as an alternative to MCJIT. More...
#include "llvm/ExecutionEngine/Orc/LLJIT.h"
Public Member Functions | |
| ExecutionSession & | getExecutionSession () |
| Returns a reference to the ExecutionSession for this JIT instance. More... | |
| VSO & | getMainVSO () |
| Returns a reference to the VSO representing the JIT'd main program. More... | |
| Error | defineAbsolute (StringRef Name, JITEvaluatedSymbol Address) |
| Convenience method for defining an absolute symbol. More... | |
| Error | addIRModule (VSO &V, std::unique_ptr< Module > M) |
| Adds an IR module to the given VSO. More... | |
| Error | addIRModule (std::unique_ptr< Module > M) |
| Adds an IR module to the Main VSO. More... | |
| Expected< JITEvaluatedSymbol > | lookupLinkerMangled (VSO &V, StringRef Name) |
| Look up a symbol in VSO V by the symbol's linker-mangled name (to look up symbols based on their IR name use the lookup function instead). More... | |
| Expected< JITEvaluatedSymbol > | lookupLinkerMangled (StringRef Name) |
| Look up a symbol in the main VSO by the symbol's linker-mangled name (to look up symbols based on their IR name use the lookup function instead). More... | |
| Expected< JITEvaluatedSymbol > | lookup (VSO &V, StringRef UnmangledName) |
| Look up a symbol in VSO V based on its IR symbol name. More... | |
| Expected< JITEvaluatedSymbol > | lookup (StringRef UnmangledName) |
| Look up a symbol in the main VSO based on its IR symbol name. More... | |
| Error | runConstructors () |
| Runs all not-yet-run static constructors. More... | |
| Error | runDestructors () |
| Runs all not-yet-run static destructors. More... | |
Static Public Member Functions | |
| static Expected< std::unique_ptr< LLJIT > > | Create (std::unique_ptr< ExecutionSession > ES, std::unique_ptr< TargetMachine > TM, DataLayout DL) |
| Create an LLJIT instance. More... | |
Protected Member Functions | |
| LLJIT (std::unique_ptr< ExecutionSession > ES, std::unique_ptr< TargetMachine > TM, DataLayout DL) | |
| std::shared_ptr< RuntimeDyld::MemoryManager > | getMemoryManager (VModuleKey K) |
| std::string | mangle (StringRef UnmangledName) |
| Error | applyDataLayout (Module &M) |
| void | recordCtorDtors (Module &M) |
Protected Attributes | |
| std::unique_ptr< ExecutionSession > | ES |
| VSO & | Main |
| std::unique_ptr< TargetMachine > | TM |
| DataLayout | DL |
| RTDyldObjectLinkingLayer2 | ObjLinkingLayer |
| IRCompileLayer2 | CompileLayer |
| CtorDtorRunner2 | CtorRunner |
| CtorDtorRunner2 | DtorRunner |
A pre-fabricated ORC JIT stack that can serve as an alternative to MCJIT.
|
protected |
Definition at line 46 of file LLJIT.cpp.
References CompileLayer, CtorRunner, DtorRunner, ES, getMemoryManager(), Main, ObjLinkingLayer, and TM.
Referenced by Create(), and runDestructors().
Adds an IR module to the given VSO.
Definition at line 31 of file LLJIT.cpp.
References assert().
Referenced by addIRModule(), and getMainVSO().
Adds an IR module to the Main VSO.
Definition at line 50 of file LLJIT.h.
References addIRModule(), lookupLinkerMangled(), and Main.
Definition at line 69 of file LLJIT.cpp.
References DL, llvm::Module::getDataLayout(), llvm::inconvertibleErrorCode(), llvm::DataLayout::isDefault(), llvm::Module::setDataLayout(), and llvm::Error::success().
Referenced by runDestructors().
|
static |
| Error llvm::orc::LLJIT::defineAbsolute | ( | StringRef | Name, |
| JITEvaluatedSymbol | Address | ||
| ) |
Convenience method for defining an absolute symbol.
Definition at line 25 of file LLJIT.cpp.
References llvm::orc::absoluteSymbols(), llvm::orc::VSO::define(), ES, and Main.
Referenced by getMainVSO().
|
inline |
Returns a reference to the ExecutionSession for this JIT instance.
Definition at line 38 of file LLJIT.h.
References ES.
|
inline |
Returns a reference to the VSO representing the JIT'd main program.
Definition at line 41 of file LLJIT.h.
References addIRModule(), llvm::Address, defineAbsolute(), and Main.
|
protected |
Definition at line 56 of file LLJIT.cpp.
Referenced by LLJIT(), and runDestructors().
|
inline |
|
inline |
| Expected< JITEvaluatedSymbol > llvm::orc::LLJIT::lookupLinkerMangled | ( | VSO & | V, |
| StringRef | Name | ||
| ) |
Look up a symbol in VSO V by the symbol's linker-mangled name (to look up symbols based on their IR name use the lookup function instead).
Definition at line 41 of file LLJIT.cpp.
References ES, and llvm::orc::lookup().
Referenced by addIRModule(), lookup(), and lookupLinkerMangled().
|
inline |
Look up a symbol in the main VSO by the symbol's linker-mangled name (to look up symbols based on their IR name use the lookup function instead).
Definition at line 60 of file LLJIT.h.
References lookupLinkerMangled(), and Main.
|
protected |
Definition at line 60 of file LLJIT.cpp.
References DL, and llvm::Mangler::getNameWithPrefix().
Referenced by lookup(), and runDestructors().
|
protected |
Definition at line 81 of file LLJIT.cpp.
References llvm::orc::CtorDtorRunner2::add(), CtorRunner, DtorRunner, llvm::orc::getConstructors(), and llvm::orc::getDestructors().
Referenced by runDestructors().
|
inline |
Runs all not-yet-run static constructors.
Definition at line 75 of file LLJIT.h.
References CtorRunner, and llvm::orc::CtorDtorRunner2::run().
|
inline |
Runs all not-yet-run static destructors.
Definition at line 78 of file LLJIT.h.
References applyDataLayout(), DtorRunner, getMemoryManager(), LLJIT(), mangle(), recordCtorDtors(), and llvm::orc::CtorDtorRunner2::run().
|
protected |
|
protected |
Definition at line 101 of file LLJIT.h.
Referenced by LLJIT(), recordCtorDtors(), and runConstructors().
|
protected |
Definition at line 96 of file LLJIT.h.
Referenced by applyDataLayout(), and mangle().
|
protected |
Definition at line 101 of file LLJIT.h.
Referenced by LLJIT(), recordCtorDtors(), and runDestructors().
|
protected |
Definition at line 92 of file LLJIT.h.
Referenced by defineAbsolute(), getExecutionSession(), LLJIT(), and lookupLinkerMangled().
|
protected |
Definition at line 93 of file LLJIT.h.
Referenced by addIRModule(), llvm::orc::LLLazyJIT::addLazyIRModule(), defineAbsolute(), getMainVSO(), LLJIT(), lookup(), and lookupLinkerMangled().
|
protected |
|
protected |
1.8.13