//===- TopologicalSort.cpp - Topological sort pass ------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "mlir/Transforms/Passes.h" #include "mlir/Analysis/TopologicalSortUtils.h" #include "mlir/IR/RegionKindInterface.h" namespace mlir { #define GEN_PASS_DEF_TOPOLOGICALSORT #include "mlir/Transforms/Passes.h.inc" } // namespace mlir usingnamespacemlir; namespace { struct TopologicalSortPass : public impl::TopologicalSortBase<TopologicalSortPass> { … }; } // end anonymous namespace std::unique_ptr<Pass> mlir::createTopologicalSortPass() { … }