|
LLVM
7.0.0
|
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 | |
| JITCompileCallbackManager (ExecutionSession &ES, JITTargetAddress ErrorHandlerAddress) | |
| Construct a JITCompileCallbackManager. More... | |
| 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 Attributes | |
| std::vector< JITTargetAddress > | AvailableTrampolines |
Target-independent base class for compile callback management.
Definition at line 51 of file IndirectionUtils.h.
Definition at line 53 of file IndirectionUtils.h.
|
inline |
Construct a JITCompileCallbackManager.
| ErrorHandlerAddress | The address of an error handler in the target process to be used if a compile callback fails. |
Definition at line 58 of file IndirectionUtils.h.
References executeCompileCallback(), getCompileCallback(), and ~JITCompileCallbackManager().
|
virtualdefault |
Referenced by JITCompileCallbackManager().
| 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 74 of file IndirectionUtils.cpp.
References llvm::format(), I, llvm::inconvertibleErrorCode(), llvm::Lock, and llvm::orc::lookup().
Referenced by JITCompileCallbackManager(), and llvm::orc::LocalJITCompileCallbackManager< TargetT >::LocalJITCompileCallbackManager().
| Expected< JITTargetAddress > llvm::orc::JITCompileCallbackManager::getCompileCallback | ( | CompileFunction | Compile | ) |
Reserve a compile callback.
Definition at line 59 of file IndirectionUtils.cpp.
References llvm::cantFail(), llvm::Lock, and llvm::to_string().
Referenced by llvm::orc::CompileOnDemandLayer2::emit(), and JITCompileCallbackManager().
|
protected |
Definition at line 73 of file IndirectionUtils.h.
Referenced by llvm::orc::LocalJITCompileCallbackManager< TargetT >::LocalJITCompileCallbackManager().
1.8.13