Go to the documentation of this file.
17 :
IRLayer(ES, BaseLayer.getManglingOptions()), BaseLayer(BaseLayer),
18 Transform(
std::
move(Transform)) {}
22 assert(TSM &&
"Module must not be null");
24 if (
auto TransformedTSM = Transform(
std::move(TSM), *R))
27 R->failMaterialization();
This is an optimization pass for GlobalISel generic memory operations.
void reportError(Error Err)
Report a error for this execution session.
virtual void emit(std::unique_ptr< MaterializationResponsibility > R, ThreadSafeModule TSM)=0
Emit should materialize the given IR.
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.
ExecutionSession & getExecutionSession()
Returns the ExecutionSession for this layer.
An ExecutionSession represents a running JIT program.
An LLVM Module together with a shared ThreadSafeContext.
Interface for layers that accept LLVM IR.