|
LLVM
5.0.0
|
IR mutating layer. More...
#include "llvm/ExecutionEngine/Orc/IRTransformLayer.h"
Public Types | |
| using | ModuleHandleT = typename BaseLayerT::ModuleHandleT |
| Handle to a set of added modules. More... | |
Public Member Functions | |
| IRTransformLayer (BaseLayerT &BaseLayer, TransformFtor Transform=TransformFtor()) | |
| Construct an IRTransformLayer with the given BaseLayer. More... | |
| Expected< ModuleHandleT > | addModule (std::shared_ptr< Module > M, std::shared_ptr< JITSymbolResolver > Resolver) |
| Apply the transform functor to the module, then add the module to the layer below, along with the memory manager and symbol resolver. More... | |
| Error | removeModule (ModuleHandleT H) |
| Remove the module associated with the handle H. 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 module represented by the handle H. More... | |
| Error | emitAndFinalize (ModuleHandleT H) |
| Immediately emit and finalize the module represented by the given handle. More... | |
| TransformFtor & | getTransform () |
| Access the transform functor directly. More... | |
| const TransformFtor & | getTransform () const |
| Access the mumate functor directly. More... | |
IR mutating layer.
This layer applies a user supplied transform to each module that is added, then adds the transformed module to the layer below.
Definition at line 30 of file IRTransformLayer.h.
| using llvm::orc::IRTransformLayer< BaseLayerT, TransformFtor >::ModuleHandleT = typename BaseLayerT::ModuleHandleT |
Handle to a set of added modules.
Definition at line 34 of file IRTransformLayer.h.
|
inline |
Construct an IRTransformLayer with the given BaseLayer.
Definition at line 37 of file IRTransformLayer.h.
|
inline |
Apply the transform functor to the module, then add the module to the layer below, along with the memory manager and symbol resolver.
Definition at line 46 of file IRTransformLayer.h.
|
inline |
Immediately emit and finalize the module represented by the given handle.
| H | Handle for module to emit/finalize. |
Definition at line 78 of file IRTransformLayer.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 58 of file IRTransformLayer.h.
|
inline |
Get the address of the given symbol in the context of the module represented by the handle H.
This call is forwarded to the base layer's implementation.
| H | The handle for the module to search in. |
| Name | The name of the symbol to search for. |
| ExportedSymbolsOnly | If true, search only for exported symbols. |
Definition at line 70 of file IRTransformLayer.h.
|
inline |
Access the transform functor directly.
Definition at line 83 of file IRTransformLayer.h.
|
inline |
Access the mumate functor directly.
Definition at line 86 of file IRTransformLayer.h.
|
inline |
Remove the module associated with the handle H.
Definition at line 52 of file IRTransformLayer.h.
1.8.6