|
LLVM
4.0.0
|
IR mutating layer. More...
#include <IRTransformLayer.h>
Public Types | |
| typedef BaseLayerT::ModuleSetHandleT | ModuleSetHandleT |
| 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... | |
| template<typename ModuleSetT , typename MemoryManagerPtrT , typename SymbolResolverPtrT > | |
| ModuleSetHandleT | addModuleSet (ModuleSetT Ms, MemoryManagerPtrT MemMgr, SymbolResolverPtrT Resolver) |
| Apply the transform functor to each module in the module set, then add the resulting set of modules to the base layer, along with the memory manager and symbol resolver. More... | |
| void | removeModuleSet (ModuleSetHandleT H) |
| Remove the module set associated with the handle H. More... | |
| JITSymbol | findSymbol (const std::string &Name, bool ExportedSymbolsOnly) |
| Search for the given named symbol. More... | |
| JITSymbol | findSymbolIn (ModuleSetHandleT H, const std::string &Name, bool ExportedSymbolsOnly) |
| Get the address of the given symbol in the context of the set of modules represented by the handle H. More... | |
| void | emitAndFinalize (ModuleSetHandleT H) |
| Immediately emit and finalize the module set 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 accepts sets of LLVM IR Modules (via addModuleSet). It immediately applies the user supplied functor to each module, then adds the set of transformed modules to the layer below.
Definition at line 28 of file IRTransformLayer.h.
| typedef BaseLayerT::ModuleSetHandleT llvm::orc::IRTransformLayer< BaseLayerT, TransformFtor >::ModuleSetHandleT |
Handle to a set of added modules.
Definition at line 31 of file IRTransformLayer.h.
|
inline |
Construct an IRTransformLayer with the given BaseLayer.
Definition at line 34 of file IRTransformLayer.h.
|
inline |
Apply the transform functor to each module in the module set, then add the resulting set of modules to the base layer, along with the memory manager and symbol resolver.
Definition at line 45 of file IRTransformLayer.h.
|
inline |
Immediately emit and finalize the module set represented by the given handle.
| H | Handle for module set to emit/finalize. |
Definition at line 83 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 63 of file IRTransformLayer.h.
|
inline |
Get the address of the given symbol in the context of the set of modules represented by the handle H.
This call is forwarded to the base layer's implementation.
| H | The handle for the module set to search in. |
| Name | The name of the symbol to search for. |
| ExportedSymbolsOnly | If true, search only for exported symbols. |
Definition at line 75 of file IRTransformLayer.h.
|
inline |
Access the transform functor directly.
Definition at line 88 of file IRTransformLayer.h.
|
inline |
Access the mumate functor directly.
Definition at line 91 of file IRTransformLayer.h.
|
inline |
Remove the module set associated with the handle H.
Definition at line 57 of file IRTransformLayer.h.
1.8.6