|
LLVM 22.0.0git
|
#include "llvm/ExecutionEngine/Orc/IRCompileLayer.h"
Classes | |
| class | IRCompiler |
Public Types | |
| using | NotifyCompiledFunction |
Public Member Functions | |
| IRCompileLayer (ExecutionSession &ES, ObjectLayer &BaseLayer, std::unique_ptr< IRCompiler > Compile) | |
| IRCompiler & | getCompiler () |
| void | setNotifyCompiled (NotifyCompiledFunction NotifyCompiled) |
| void | emit (std::unique_ptr< MaterializationResponsibility > R, ThreadSafeModule TSM) override |
| Emit should materialize the given IR. | |
| Public Member Functions inherited from llvm::orc::IRLayer | |
| IRLayer (ExecutionSession &ES, const IRSymbolMapper::ManglingOptions *&MO) | |
| virtual | ~IRLayer () |
| ExecutionSession & | getExecutionSession () |
| Returns the ExecutionSession for this layer. | |
| const IRSymbolMapper::ManglingOptions *& | getManglingOptions () const |
| Get the mangling options for this layer. | |
| void | setCloneToNewContextOnEmit (bool CloneToNewContextOnEmit) |
| Sets the CloneToNewContextOnEmit flag (false by default). | |
| bool | getCloneToNewContextOnEmit () const |
| Returns the current value of the CloneToNewContextOnEmit flag. | |
| virtual Error | add (ResourceTrackerSP RT, ThreadSafeModule TSM) |
| Add a MaterializatinoUnit representing the given IR to the JITDylib targeted by the given tracker. | |
| Error | add (JITDylib &JD, ThreadSafeModule TSM) |
| Adds a MaterializationUnit representing the given IR to the given JITDylib. | |
Definition at line 32 of file IRCompileLayer.h.
Definition at line 50 of file IRCompileLayer.h.
| llvm::orc::IRCompileLayer::IRCompileLayer | ( | ExecutionSession & | ES, |
| ObjectLayer & | BaseLayer, | ||
| std::unique_ptr< IRCompiler > | Compile ) |
Definition at line 16 of file IRCompileLayer.cpp.
References llvm::orc::IRLayer::IRLayer(), and llvm::move().
|
overridevirtual |
Emit should materialize the given IR.
Implements llvm::orc::IRLayer.
Definition at line 28 of file IRCompileLayer.cpp.
References assert(), llvm::orc::IRLayer::getExecutionSession(), llvm::orc::ExecutionSession::reportError(), and llvm::orc::ThreadSafeModule::withModuleDo().
|
inline |
Definition at line 56 of file IRCompileLayer.h.
| void llvm::orc::IRCompileLayer::setNotifyCompiled | ( | NotifyCompiledFunction | NotifyCompiled | ) |
Definition at line 23 of file IRCompileLayer.cpp.