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));
This class represents lattice values for constants.
Tracks responsibility for materialization, and mediates interactions between MaterializationUnits and...
ExecutionSession & getExecutionSession()
Returns the ExecutionSession for this layer.
virtual void emit(MaterializationResponsibility R, ThreadSafeModule TSM)=0
Emit should materialize the given IR.
An LLVM Module together with a shared ThreadSafeContext.
Interface for layers that accept LLVM IR.
An ExecutionSession represents a running JIT program.
void reportError(Error Err)
Report a error for this execution session.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
void failMaterialization()
Notify all not-yet-emitted covered by this MaterializationResponsibility instance that an error has o...