|
LLVM
5.0.0
|
Lazy-emitting IR layer. More...
#include "llvm/ExecutionEngine/Orc/LazyEmittingLayer.h"
Public Types | |
| using | BaseLayerHandleT = typename BaseLayerT::ModuleHandleT |
| using | ModuleHandleT = typename ModuleListT::iterator |
| Handle to a loaded module. More... | |
Public Member Functions | |
| LazyEmittingLayer (BaseLayerT &BaseLayer) | |
| Construct a lazy emitting layer. More... | |
| Expected< ModuleHandleT > | addModule (std::shared_ptr< Module > M, std::shared_ptr< JITSymbolResolver > Resolver) |
| Add the given module to the lazy emitting layer. More... | |
| Error | removeModule (ModuleHandleT H) |
| Remove the module represented by the given handle. More... | |
| JITSymbol | findSymbol (const std::string &Name, bool ExportedSymbolsOnly) |
| Search for the given named symbol. More... | |
| JITSymbol | findSymbolIn (ModuleHandleT H, const std::string &Name, bool ExportedSymbolsOnly) |
| Get the address of the given symbol in the context of the of compiled modules represented by the handle H. More... | |
| Error | emitAndFinalize (ModuleHandleT H) |
| Immediately emit and finalize the module represented by the given handle. More... | |
Lazy-emitting IR layer.
This layer accepts LLVM IR Modules (via addModule), but does not immediately emit them the layer below. Instead, emissing to the base layer is deferred until the first time the client requests the address (via JITSymbol::getAddress) for a symbol contained in this layer.
Definition at line 41 of file LazyEmittingLayer.h.
| using llvm::orc::LazyEmittingLayer< BaseLayerT >::BaseLayerHandleT = typename BaseLayerT::ModuleHandleT |
Definition at line 44 of file LazyEmittingLayer.h.
| using llvm::orc::LazyEmittingLayer< BaseLayerT >::ModuleHandleT = typename ModuleListT::iterator |
Handle to a loaded module.
Definition at line 209 of file LazyEmittingLayer.h.
|
inline |
Construct a lazy emitting layer.
Definition at line 212 of file LazyEmittingLayer.h.
|
inline |
Add the given module to the lazy emitting layer.
Definition at line 216 of file LazyEmittingLayer.h.
Referenced by llvm::orc::OrcMCJITReplacement::addModule().
|
inline |
Immediately emit and finalize the module represented by the given handle.
| H | Handle for module to emit/finalize. |
Definition at line 264 of file LazyEmittingLayer.h.
|
inline |
Search for the given named symbol.
| Name | The name of the symbol to search for. |
| ExportedSymbolsOnly | If true, search only for exported symbols. |
Definition at line 238 of file LazyEmittingLayer.h.
|
inline |
Get the address of the given symbol in the context of the of compiled modules represented by the handle H.
Definition at line 256 of file LazyEmittingLayer.h.
|
inline |
Remove the module represented by the given handle.
This method will free the memory associated with the given module, both in this layer, and the base layer.
Definition at line 228 of file LazyEmittingLayer.h.
1.8.6