|
LLVM
5.0.0
|
Target-independent base class for compile callback management. More...
#include "llvm/ExecutionEngine/Orc/IndirectionUtils.h"
Classes | |
| class | CompileCallbackInfo |
| Handle to a newly created compile callback. More... | |
Public Types | |
| using | CompileFtor = std::function< JITTargetAddress()> |
Public Member Functions | |
| JITCompileCallbackManager (JITTargetAddress ErrorHandlerAddress) | |
| Construct a JITCompileCallbackManager. More... | |
| virtual | ~JITCompileCallbackManager ()=default |
| JITTargetAddress | executeCompileCallback (JITTargetAddress TrampolineAddr) |
| Execute the callback for the given trampoline id. More... | |
| CompileCallbackInfo | getCompileCallback () |
| Reserve a compile callback. More... | |
| CompileCallbackInfo | getCompileCallbackInfo (JITTargetAddress TrampolineAddr) |
| Get a CompileCallbackInfo for an existing callback. More... | |
| void | releaseCompileCallback (JITTargetAddress TrampolineAddr) |
| Release a compile callback. More... | |
Protected Types | |
| using | TrampolineMapT = std::map< JITTargetAddress, CompileFtor > |
Protected Attributes | |
| JITTargetAddress | ErrorHandlerAddress |
| TrampolineMapT | ActiveTrampolines |
| std::vector< JITTargetAddress > | AvailableTrampolines |
Target-independent base class for compile callback management.
Definition at line 50 of file IndirectionUtils.h.
Definition at line 52 of file IndirectionUtils.h.
|
protected |
Definition at line 136 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 75 of file IndirectionUtils.h.
|
virtualdefault |
|
inline |
Execute the callback for the given trampoline id.
Called by the JIT to compile functions on demand.
Definition at line 82 of file IndirectionUtils.h.
References ActiveTrampolines, AvailableTrampolines, ErrorHandlerAddress, and I.
|
inline |
Reserve a compile callback.
Definition at line 108 of file IndirectionUtils.h.
References ActiveTrampolines.
|
inline |
Get a CompileCallbackInfo for an existing callback.
Definition at line 115 of file IndirectionUtils.h.
References ActiveTrampolines, assert(), and I.
|
inline |
Release a compile callback.
Note: Callbacks are auto-released after they execute. This method should only be called to manually release a callback that is not going to execute.
Definition at line 126 of file IndirectionUtils.h.
References ActiveTrampolines, assert(), AvailableTrampolines, and I.
|
protected |
Definition at line 137 of file IndirectionUtils.h.
Referenced by executeCompileCallback(), getCompileCallback(), getCompileCallbackInfo(), and releaseCompileCallback().
|
protected |
Definition at line 138 of file IndirectionUtils.h.
Referenced by executeCompileCallback(), and releaseCompileCallback().
|
protected |
Definition at line 134 of file IndirectionUtils.h.
Referenced by executeCompileCallback().
1.8.6