19 :
IRLayer(ES), BaseLayer(BaseLayer), Transform(
std::move(Transform)) {}
25 if (
auto TransformedTSM = Transform(std::move(TSM), R))
26 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.
Module * getModule()
Get the module wrapped by this ThreadSafeModule.
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...