|
LLVM
10.0.0
|
#include "llvm/ExecutionEngine/Orc/CompileOnDemandLayer.h"
Public Types | |
| using | IndirectStubsManagerBuilder = std::function< std::unique_ptr< IndirectStubsManager >()> |
| Builder for IndirectStubsManagers. More... | |
| using | GlobalValueSet = std::set< const GlobalValue * > |
| using | PartitionFunction = std::function< Optional< GlobalValueSet >(GlobalValueSet Requested)> |
| Partitioning function. More... | |
Static Public Member Functions | |
| static Optional< GlobalValueSet > | compileRequested (GlobalValueSet Requested) |
| Off-the-shelf partitioning which compiles all requested symbols (usually a single function at a time). More... | |
| static Optional< GlobalValueSet > | compileWholeModule (GlobalValueSet Requested) |
| Off-the-shelf partitioning which compiles whole modules whenever any symbol in them is requested. More... | |
Friends | |
| class | PartitioningIRMaterializationUnit |
Definition at line 65 of file CompileOnDemandLayer.h.
| using llvm::orc::CompileOnDemandLayer::GlobalValueSet = std::set<const GlobalValue *> |
Definition at line 73 of file CompileOnDemandLayer.h.
| using llvm::orc::CompileOnDemandLayer::IndirectStubsManagerBuilder = std::function<std::unique_ptr<IndirectStubsManager>()> |
Builder for IndirectStubsManagers.
Definition at line 71 of file CompileOnDemandLayer.h.
| using llvm::orc::CompileOnDemandLayer::PartitionFunction = std::function<Optional<GlobalValueSet>(GlobalValueSet Requested)> |
Partitioning function.
Definition at line 77 of file CompileOnDemandLayer.h.
| llvm::orc::CompileOnDemandLayer::CompileOnDemandLayer | ( | ExecutionSession & | ES, |
| IRLayer & | BaseLayer, | ||
| LazyCallThroughManager & | LCTMgr, | ||
| IndirectStubsManagerBuilder | BuildIndirectStubsManager | ||
| ) |
Construct a CompileOnDemandLayer.
Definition at line 113 of file CompileOnDemandLayer.cpp.
|
static |
Off-the-shelf partitioning which compiles all requested symbols (usually a single function at a time).
Definition at line 104 of file CompileOnDemandLayer.cpp.
|
static |
Off-the-shelf partitioning which compiles whole modules whenever any symbol in them is requested.
Definition at line 109 of file CompileOnDemandLayer.cpp.
References llvm::None.
|
overridevirtual |
Emits the given module.
This should not be called by clients: it will be called by the JIT when a definition added via the add method is requested.
Implements llvm::orc::IRLayer.
Definition at line 127 of file CompileOnDemandLayer.cpp.
References assert(), llvm::orc::IRLayer::getExecutionSession(), llvm::orc::MaterializationResponsibility::getSymbols(), llvm::orc::MaterializationResponsibility::getTargetJITDylib(), Name, and llvm::orc::ThreadSafeModule::withModuleDo().
| void llvm::orc::CompileOnDemandLayer::setImplMap | ( | ImplSymbolMap * | Imp | ) |
Sets the ImplSymbolMap.
Definition at line 124 of file CompileOnDemandLayer.cpp.
| void llvm::orc::CompileOnDemandLayer::setPartitionFunction | ( | PartitionFunction | Partition | ) |
Sets the partition function.
Definition at line 120 of file CompileOnDemandLayer.cpp.
|
friend |
Definition at line 66 of file CompileOnDemandLayer.h.
1.8.13