Go to the documentation of this file.
17 using 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)))
34 R->failMaterialization();
35 getExecutionSession().reportError(TransformedObj.takeError());
RTTIExtends< ObjectLinkingLayer, ObjectLayer > BaseT
This is an optimization pass for GlobalISel generic memory operations.
Interface for Layers that accept object files.
compiles ldr LCPI1_0 ldr ldr mov lsr tst moveq r1 ldr LCPI1_1 and r0 bx lr It would be better to do something like to fold the shift into the conditional move
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
virtual void emit(std::unique_ptr< MaterializationResponsibility > R, std::unique_ptr< MemoryBuffer > O)=0
Emit should materialize the given IR.
An ExecutionSession represents a running JIT program.