13 #ifndef LLVM_EXECUTIONENGINE_ORC_OBJECTTRANSFORMLAYER_H 14 #define LLVM_EXECUTIONENGINE_ORC_OBJECTTRANSFORMLAYER_H 28 std::function<Expected<std::unique_ptr<MemoryBuffer>>(
29 std::unique_ptr<MemoryBuffer>)>;
35 std::unique_ptr<MemoryBuffer>
O)
override;
38 this->Transform = std::move(Transform);
51 template <
typename BaseLayerT,
typename TransformFtor>
57 TransformFtor Transform = TransformFtor()),
58 "ORCv1 layers (layers with the 'Legacy' prefix) are deprecated. Please " 60 "the ORCv2 ObjectTransformLayer instead");
64 BaseLayerT &BaseLayer,
65 TransformFtor Transform = TransformFtor())
66 : BaseLayer(BaseLayer), Transform(
std::move(Transform)) {}
74 return BaseLayer.addObject(std::move(K), Transform(std::move(Obj)));
85 return BaseLayer.findSymbol(Name, ExportedSymbolsOnly);
97 bool ExportedSymbolsOnly) {
98 return BaseLayer.findSymbolIn(K, Name, ExportedSymbolsOnly);
109 BaseLayer.mapSectionAddress(K, LocalAddress, TargetAddr);
119 BaseLayerT &BaseLayer;
120 TransformFtor Transform;
123 template <
typename BaseLayerT,
typename TransformFtor>
126 : BaseLayer(BaseLayer), Transform(std::move(Transform)) {}
131 #endif // LLVM_EXECUTIONENGINE_ORC_OBJECTTRANSFORMLAYER_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
uint64_t JITTargetAddress
Represents an address in the target process's address space.
#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.
Interface for Layers that accept object files.