LLVM 20.0.0git
|
Target-independent base class for compile callback management. More...
#include "llvm/ExecutionEngine/Orc/IndirectionUtils.h"
Public Types | |
using | CompileFunction = std::function< ExecutorAddr()> |
Public Member Functions | |
virtual | ~JITCompileCallbackManager ()=default |
Expected< ExecutorAddr > | getCompileCallback (CompileFunction Compile) |
Reserve a compile callback. | |
ExecutorAddr | executeCompileCallback (ExecutorAddr TrampolineAddr) |
Execute the callback for the given trampoline id. | |
Protected Member Functions | |
JITCompileCallbackManager (std::unique_ptr< TrampolinePool > TP, ExecutionSession &ES, ExecutorAddr ErrorHandlerAddress) | |
Construct a JITCompileCallbackManager. | |
void | setTrampolinePool (std::unique_ptr< TrampolinePool > TP) |
Target-independent base class for compile callback management.
Definition at line 203 of file IndirectionUtils.h.
using llvm::orc::JITCompileCallbackManager::CompileFunction = std::function<ExecutorAddr()> |
Definition at line 205 of file IndirectionUtils.h.
|
virtualdefault |
|
inlineprotected |
Construct a JITCompileCallbackManager.
Definition at line 218 of file IndirectionUtils.h.
ExecutorAddr llvm::orc::JITCompileCallbackManager::executeCompileCallback | ( | ExecutorAddr | TrampolineAddr | ) |
Execute the callback for the given trampoline id.
Called by the JIT to compile functions on demand.
Definition at line 83 of file IndirectionUtils.cpp.
References llvm::dbgs(), llvm::formatv(), I, llvm::inconvertibleErrorCode(), llvm::orc::ExecutionSession::lookup(), llvm::orc::makeJITDylibSearchOrder(), llvm::orc::MatchAllSymbols, Name, llvm::orc::ExecutionSession::reportError(), and Sym.
Expected< ExecutorAddr > llvm::orc::JITCompileCallbackManager::getCompileCallback | ( | CompileFunction | Compile | ) |
Reserve a compile callback.
Definition at line 67 of file IndirectionUtils.cpp.
References llvm::cantFail(), llvm::orc::JITDylib::define(), and llvm::orc::ExecutionSession::intern().
|
inlineprotected |
Definition at line 225 of file IndirectionUtils.h.