|
LLVM
10.0.0
|
Interface for layers that accept LLVM IR. More...
#include "llvm/ExecutionEngine/Orc/Layer.h"
Public Member Functions | |
| IRLayer (ExecutionSession &ES, const IRMaterializationUnit::ManglingOptions *&MO) | |
| virtual | ~IRLayer () |
| ExecutionSession & | getExecutionSession () |
| Returns the ExecutionSession for this layer. More... | |
| const IRMaterializationUnit::ManglingOptions *& | getManglingOptions () const |
| Get the mangling options for this layer. More... | |
| void | setCloneToNewContextOnEmit (bool CloneToNewContextOnEmit) |
| Sets the CloneToNewContextOnEmit flag (false by default). More... | |
| bool | getCloneToNewContextOnEmit () const |
| Returns the current value of the CloneToNewContextOnEmit flag. More... | |
| virtual Error | add (JITDylib &JD, ThreadSafeModule TSM, VModuleKey K=VModuleKey()) |
| Adds a MaterializationUnit representing the given IR to the given JITDylib. More... | |
| virtual void | emit (MaterializationResponsibility R, ThreadSafeModule TSM)=0 |
| Emit should materialize the given IR. More... | |
|
inline |
|
virtual |
Adds a MaterializationUnit representing the given IR to the given JITDylib.
Definition at line 21 of file Layer.cpp.
References llvm::orc::JITDylib::define(), and getManglingOptions().
|
pure virtual |
Emit should materialize the given IR.
Implemented in llvm::orc::IRSpeculationLayer, llvm::orc::CompileOnDemandLayer, llvm::orc::IRCompileLayer, and llvm::orc::IRTransformLayer.
Referenced by llvm::orc::BasicIRLayerMaterializationUnit::BasicIRLayerMaterializationUnit(), and llvm::orc::IRTransformLayer::emit().
|
inline |
Returns the current value of the CloneToNewContextOnEmit flag.
Definition at line 94 of file Layer.h.
References add(), llvm::orc::MaterializationUnit::K, and llvm::orc::IRMaterializationUnit::TSM.
Referenced by llvm::orc::BasicIRLayerMaterializationUnit::BasicIRLayerMaterializationUnit().
|
inline |
Returns the ExecutionSession for this layer.
Definition at line 73 of file Layer.h.
Referenced by llvm::orc::IRTransformLayer::emit(), llvm::orc::IRCompileLayer::emit(), and llvm::orc::CompileOnDemandLayer::emit().
|
inline |
|
inline |
Sets the CloneToNewContextOnEmit flag (false by default).
When set, IR modules added to this layer will be cloned on to a new context before emit is called. This can be used by clients who want to load all IR using one LLVMContext (to save memory via type and constant uniquing), but want to move Modules to fresh contexts before compiling them to enable concurrent compilation. Single threaded clients, or clients who load every module on a new context, need not set this.
1.8.13