[Mlir-commits] [mlir] [mlir][PDL] Add support for native constraints with results (PR #82760)

Matthias Gehre llvmlistbot at llvm.org
Thu Feb 29 00:13:38 PST 2024


================
@@ -875,6 +885,27 @@ static void insertExitNode(std::unique_ptr<MatcherNode> *root) {
   *root = std::make_unique<ExitNode>();
 }
 
+/// Sorts the range begin/end with the partial order given by cmp.
+template <typename Iterator, typename Compare>
+void stableTopologicalSort(Iterator begin, Iterator end, Compare cmp) {
----------------
mgehre-amd wrote:

@Mogball, I made the function static. Is that fine with you?

https://github.com/llvm/llvm-project/pull/82760


More information about the Mlir-commits mailing list