13 #ifndef LLVM_EXECUTIONENGINE_ORC_IRTRANSFORMLAYER_H 14 #define LLVM_EXECUTIONENGINE_ORC_IRTRANSFORMLAYER_H 37 this->Transform = std::move(Transform);
57 template <
typename BaseLayerT,
typename TransformFtor>
64 TransformFtor Transform = TransformFtor()),
65 "ORCv1 layers (layers with the 'Legacy' prefix) are deprecated. Please " 67 "the ORCv2 IRTransformLayer instead");
71 TransformFtor Transform = TransformFtor())
72 : BaseLayer(BaseLayer), Transform(
std::move(Transform)) {}
79 return BaseLayer.addModule(std::move(K), Transform(std::move(M)));
90 return BaseLayer.findSymbol(Name, ExportedSymbolsOnly);
102 bool ExportedSymbolsOnly) {
103 return BaseLayer.findSymbolIn(K, Name, ExportedSymbolsOnly);
118 BaseLayerT &BaseLayer;
119 TransformFtor Transform;
122 template <
typename BaseLayerT,
typename TransformFtor>
124 BaseLayerT &BaseLayer, TransformFtor Transform)
125 : BaseLayer(BaseLayer), Transform(std::move(Transform)) {}
130 #endif // LLVM_EXECUTIONENGINE_ORC_IRTRANSFORMLAYER_H Represents a symbol in the JIT.
This class represents lattice values for constants.
amdgpu Simplify well known AMD library false FunctionCallee Value const Twine & Name
Tracks responsibility for materialization, and mediates interactions between MaterializationUnits and...
ORCv1DeprecationAcknowledgement
An LLVM Module together with a shared ThreadSafeContext.
Interface for layers that accept LLVM IR.
#define LLVM_ATTRIBUTE_DEPRECATED(decl, message)
An ExecutionSession represents a running JIT program.
uint8_t uint64_t VModuleKey
VModuleKey provides a unique identifier (allocated and managed by ExecutionSessions) for a module add...
Lightweight error class with error context and mandatory checking.