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))
25 BaseLayer.
emit(std::move(R), std::move(*TransformedTSM));
27 R->failMaterialization();
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
An ExecutionSession represents a running JIT program.
void reportError(Error Err)
Report a error for this execution session.
Interface for layers that accept LLVM IR.
virtual void emit(std::unique_ptr< MaterializationResponsibility > R, ThreadSafeModule TSM)=0
Emit should materialize the given IR.
ExecutionSession & getExecutionSession()
Returns the ExecutionSession for this layer.
An LLVM Module together with a shared ThreadSafeContext.
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.