|
LLVM
7.0.0
|
#include "llvm/ExecutionEngine/Orc/IRCompileLayer.h"
Public Types | |
| using | CompileFunction = std::function< Expected< std::unique_ptr< MemoryBuffer > >(Module &)> |
| using | NotifyCompiledFunction = std::function< void(VModuleKey K, std::unique_ptr< Module >)> |
Public Member Functions | |
| IRCompileLayer2 (ExecutionSession &ES, ObjectLayer &BaseLayer, CompileFunction Compile) | |
| void | setNotifyCompiled (NotifyCompiledFunction NotifyCompiled) |
| 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... | |
| virtual Error | add (VSO &V, VModuleKey K, std::unique_ptr< Module > M) |
| Adds a MaterializationUnit representing the given IR to the given VSO. More... | |
Definition at line 31 of file IRCompileLayer.h.
| using llvm::orc::IRCompileLayer2::CompileFunction = std::function<Expected<std::unique_ptr<MemoryBuffer> >(Module &)> |
Definition at line 34 of file IRCompileLayer.h.
| using llvm::orc::IRCompileLayer2::NotifyCompiledFunction = std::function<void(VModuleKey K, std::unique_ptr<Module>)> |
Definition at line 37 of file IRCompileLayer.h.
| llvm::orc::IRCompileLayer2::IRCompileLayer2 | ( | ExecutionSession & | ES, |
| ObjectLayer & | BaseLayer, | ||
| CompileFunction | Compile | ||
| ) |
Definition at line 15 of file IRCompileLayer.cpp.
|
overridevirtual |
Emit should materialize the given IR.
Implements llvm::orc::IRLayer.
Definition at line 24 of file IRCompileLayer.cpp.
References assert(), llvm::orc::ObjectLayer::emit(), llvm::orc::MaterializationResponsibility::failMaterialization(), llvm::orc::IRLayer::getExecutionSession(), llvm::Lock, and llvm::orc::ExecutionSessionBase::reportError().
| void llvm::orc::IRCompileLayer2::setNotifyCompiled | ( | NotifyCompiledFunction | NotifyCompiled | ) |
Definition at line 19 of file IRCompileLayer.cpp.
References llvm::Lock.
1.8.13