17using BaseT = RTTIExtends<ObjectTransformLayer, ObjectLayer>;
22 :
BaseT(ES), BaseLayer(BaseLayer), Transform(
std::
move(Transform)) {}
25 std::unique_ptr<MaterializationResponsibility> R,
26 std::unique_ptr<MemoryBuffer> O) {
27 assert(O &&
"Module must not be null");
31 if (
auto TransformedObj = Transform(std::move(O)))
32 O = std::move(*TransformedObj);
34 R->failMaterialization();
35 getExecutionSession().reportError(TransformedObj.takeError());
40 BaseLayer.
emit(std::move(R), std::move(O));
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
An ExecutionSession represents a running JIT program.
Interface for Layers that accept object files.
virtual void emit(std::unique_ptr< MaterializationResponsibility > R, std::unique_ptr< MemoryBuffer > O)=0
Emit should materialize the given IR.
RTTIExtends< ObjectLinkingLayer, ObjectLayer > BaseT
This is an optimization pass for GlobalISel generic memory operations.
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
Implement std::hash so that hash_code can be used in STL containers.