LLVM
8.0.1
|
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 186 of file IndirectionUtils.h.
Definition at line 188 of file IndirectionUtils.h.
|
virtualdefault |
|
inlineprotected |
Construct a JITCompileCallbackManager.
Definition at line 201 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 78 of file IndirectionUtils.cpp.
References llvm::dbgs(), llvm::format(), I, llvm::inconvertibleErrorCode(), llvm::Lock, and Name.
Expected< JITTargetAddress > llvm::orc::JITCompileCallbackManager::getCompileCallback | ( | CompileFunction | Compile | ) |
Reserve a compile callback.
Definition at line 62 of file IndirectionUtils.cpp.
References llvm::cantFail(), llvm::Lock, and llvm::to_string().
|
inlineprotected |
Definition at line 208 of file IndirectionUtils.h.