19 :
IRLayer(ES), BaseLayer(BaseLayer), Transform(
std::move(Transform)) {}
22 std::unique_ptr<Module> M) {
23 assert(M &&
"Module must not be null");
25 if (
auto TransformedMod = Transform(std::move(M)))
26 BaseLayer.
emit(std::move(R), std::move(K), std::move(*TransformedMod));
Compute iterated dominance frontiers using a linear time algorithm.
uint64_t VModuleKey
VModuleKey provides a unique identifier (allocated and managed by ExecutionSessions) for a module add...
Tracks responsibility for materialization, and mediates interactions between MaterializationUnits and...
virtual void emit(MaterializationResponsibility R, VModuleKey K, std::unique_ptr< Module > M)=0
Emit should materialize the given IR.
ExecutionSession & getExecutionSession()
Returns the ExecutionSession for this layer.
void reportError(Error Err)
Report a error for this execution session.
Interface for layers that accept LLVM IR.
An ExecutionSession represents a running JIT program.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
void failMaterialization()
Notify all unfinalized symbols that an error has occurred.