LLVM
8.0.1
|
IR mutating layer. More...
#include "llvm/ExecutionEngine/Orc/IRTransformLayer.h"
Public Member Functions | |
LegacyIRTransformLayer (BaseLayerT &BaseLayer, TransformFtor Transform=TransformFtor()) | |
Construct an LegacyIRTransformLayer with the given BaseLayer. More... | |
Error | addModule (VModuleKey K, std::unique_ptr< Module > M) |
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 (VModuleKey K) |
Remove the module associated with the VModuleKey K. More... | |
JITSymbol | findSymbol (const std::string &Name, bool ExportedSymbolsOnly) |
Search for the given named symbol. More... | |
JITSymbol | findSymbolIn (VModuleKey K, const std::string &Name, bool ExportedSymbolsOnly) |
Get the address of the given symbol in the context of the module represented by the VModuleKey K. More... | |
Error | emitAndFinalize (VModuleKey K) |
Immediately emit and finalize the module represented by the given VModuleKey. 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 56 of file IRTransformLayer.h.
|
inline |
Construct an LegacyIRTransformLayer with the given BaseLayer.
Definition at line 60 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 68 of file IRTransformLayer.h.
|
inline |
Immediately emit and finalize the module represented by the given VModuleKey.
K | The VModuleKey for the module to emit/finalize. |
Definition at line 99 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 79 of file IRTransformLayer.h.
|
inline |
Get the address of the given symbol in the context of the module represented by the VModuleKey K.
This call is forwarded to the base layer's implementation.
K | The VModuleKey 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 91 of file IRTransformLayer.h.
|
inline |
Access the transform functor directly.
Definition at line 102 of file IRTransformLayer.h.
|
inline |
Access the mumate functor directly.
Definition at line 105 of file IRTransformLayer.h.
|
inline |
Remove the module associated with the VModuleKey K.
Definition at line 73 of file IRTransformLayer.h.