[Mlir-commits] [mlir] [mlir] add a fluent API to GreedyRewriterConfig (PR #132253)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Wed Apr 16 01:48:03 PDT 2025


================
@@ -50,24 +50,41 @@ class GreedyRewriteConfig {
   ///
   /// Note: Only applicable when simplifying entire regions.
   bool useTopDownTraversal = false;
+  GreedyRewriteConfig &setUseTopDownTraversal(bool use = true) {
+    useTopDownTraversal = use;
+    return *this;
+  }
----------------
ftynse wrote:

Yeah, pushed the wrong commit...

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


More information about the Mlir-commits mailing list