|
LLVM
7.0.0
|
#include "llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h"
Public Types | |
| using | IndirectStubsManagerBuilder = std::function< std::unique_ptr< IndirectStubsManager >()> |
| Builder for IndirectStubsManagers. More... | |
| using | GetAvailableContextFunction = std::function< LLVMContext &()> |
Public Member Functions | |
| CompileOnDemandLayer2 (ExecutionSession &ES, IRLayer &BaseLayer, JITCompileCallbackManager &CCMgr, IndirectStubsManagerBuilder BuildIndirectStubsManager, GetAvailableContextFunction GetAvailableContext) | |
| Error | add (VSO &V, VModuleKey K, std::unique_ptr< Module > M) override |
| Adds a MaterializationUnit representing the given IR to the given VSO. More... | |
| void | emit (MaterializationResponsibility R, VModuleKey K, std::unique_ptr< Module > M) override |
| Emit should materialize the given IR. More... | |
Public Member Functions inherited from llvm::orc::IRLayer | |
| IRLayer (ExecutionSession &ES) | |
| virtual | ~IRLayer () |
| ExecutionSession & | getExecutionSession () |
| Returns the ExecutionSession for this layer. More... | |
Friends | |
| class | ExtractingIRMaterializationUnit |
Definition at line 63 of file CompileOnDemandLayer.h.
| using llvm::orc::CompileOnDemandLayer2::GetAvailableContextFunction = std::function<LLVMContext &()> |
Definition at line 71 of file CompileOnDemandLayer.h.
| using llvm::orc::CompileOnDemandLayer2::IndirectStubsManagerBuilder = std::function<std::unique_ptr<IndirectStubsManager>()> |
Builder for IndirectStubsManagers.
Definition at line 69 of file CompileOnDemandLayer.h.
| llvm::orc::CompileOnDemandLayer2::CompileOnDemandLayer2 | ( | ExecutionSession & | ES, |
| IRLayer & | BaseLayer, | ||
| JITCompileCallbackManager & | CCMgr, | ||
| IndirectStubsManagerBuilder | BuildIndirectStubsManager, | ||
| GetAvailableContextFunction | GetAvailableContext | ||
| ) |
Definition at line 216 of file CompileOnDemandLayer.cpp.
|
overridevirtual |
Adds a MaterializationUnit representing the given IR to the given VSO.
Reimplemented from llvm::orc::IRLayer.
Definition at line 224 of file CompileOnDemandLayer.cpp.
References llvm::orc::IRLayer::add().
|
overridevirtual |
Emit should materialize the given IR.
Implements llvm::orc::IRLayer.
Definition at line 229 of file CompileOnDemandLayer.cpp.
References assert(), llvm::orc::cloneFunctionDecl(), llvm::GlobalValue::ExternalLinkage, extractAliases(), extractGlobals(), F(), llvm::orc::MaterializationResponsibility::failMaterialization(), llvm::JITSymbolFlags::fromGlobalValue(), llvm::orc::JITCompileCallbackManager::getCompileCallback(), llvm::orc::IRLayer::getExecutionSession(), llvm::orc::MaterializationResponsibility::getTargetVSO(), and Mangle.
|
friend |
Definition at line 64 of file CompileOnDemandLayer.h.
1.8.13