15 #define GEN_PASS_DEF_TOPOLOGICALSORT
16 #include "mlir/Transforms/Passes.h.inc"
22 struct TopologicalSortPass
23 :
public impl::TopologicalSortBase<TopologicalSortPass> {
24 void runOnOperation()
override {
26 getOperation()->walk([](RegionKindInterface op) {
28 if (op.hasSSADominance(it.index()))
30 for (Block &block : it.value())
31 sortTopologically(&block);
39 return std::make_unique<TopologicalSortPass>();
constexpr void enumerate(std::tuple< Tys... > &tuple, CallbackT &&callback)
Include the generated interface declarations.
std::unique_ptr< Pass > createTopologicalSortPass()
Creates a pass that recursively sorts nested regions without SSA dominance topologically such that,...