LLVM 22.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 |
LLVM_ABI Expected< ExecutorAddr > | getCompileCallback (CompileFunction Compile) |
Reserve a compile callback. | |
LLVM_ABI 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 205 of file IndirectionUtils.h.
using llvm::orc::JITCompileCallbackManager::CompileFunction = std::function<ExecutorAddr()> |
Definition at line 207 of file IndirectionUtils.h.
|
virtualdefault |
References LLVM_ABI.
|
inlineprotected |
Construct a JITCompileCallbackManager.
Definition at line 220 of file IndirectionUtils.h.
References llvm::move().
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 80 of file IndirectionUtils.cpp.
References llvm::dbgs(), llvm::formatv(), I, llvm::inconvertibleErrorCode(), llvm::make_error(), llvm::orc::makeJITDylibSearchOrder(), and llvm::orc::MatchAllSymbols.
Expected< ExecutorAddr > llvm::orc::JITCompileCallbackManager::getCompileCallback | ( | CompileFunction | Compile | ) |
Reserve a compile callback.
Definition at line 64 of file IndirectionUtils.cpp.
References llvm::cantFail().
|
inlineprotected |
Definition at line 227 of file IndirectionUtils.h.