|
LLVM
10.0.0
|
A layer that applies a transform to emitted modules. More...
#include "llvm/ExecutionEngine/Orc/IRTransformLayer.h"
Public Types | |
| using | TransformFunction = std::function< Expected< ThreadSafeModule >(ThreadSafeModule, const MaterializationResponsibility &R)> |
Static Public Member Functions | |
| static ThreadSafeModule | identityTransform (ThreadSafeModule TSM, const MaterializationResponsibility &R) |
A layer that applies a transform to emitted modules.
The transform function is responsible for locking the ThreadSafeContext before operating on the module.
Definition at line 28 of file IRTransformLayer.h.
| using llvm::orc::IRTransformLayer::TransformFunction = std::function<Expected<ThreadSafeModule>( ThreadSafeModule, const MaterializationResponsibility &R)> |
Definition at line 31 of file IRTransformLayer.h.
| llvm::orc::IRTransformLayer::IRTransformLayer | ( | ExecutionSession & | ES, |
| IRLayer & | BaseLayer, | ||
| TransformFunction | Transform = identityTransform |
||
| ) |
Definition at line 15 of file IRTransformLayer.cpp.
|
overridevirtual |
Emit should materialize the given IR.
Implements llvm::orc::IRLayer.
Definition at line 20 of file IRTransformLayer.cpp.
References assert(), llvm::orc::IRLayer::emit(), llvm::orc::MaterializationResponsibility::failMaterialization(), llvm::orc::IRLayer::getExecutionSession(), and llvm::orc::ExecutionSession::reportError().
Referenced by setTransform().
|
inlinestatic |
Definition at line 43 of file IRTransformLayer.h.
|
inline |
Definition at line 36 of file IRTransformLayer.h.
References emit().
1.8.13