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