[Mlir-commits] [mlir] [mlir][reducer] add replace operands pattern to mlir-reduce (PR #192874)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sun Apr 19 14:16:47 PDT 2026


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff origin/main HEAD --extensions h,cpp -- mlir/include/mlir/Reducer/Patterns/ReplaceOperands.h mlir/lib/Reducer/Patterns/ReplaceOperands.cpp mlir/test/lib/Dialect/Test/TestDialectInterfaces.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/mlir/test/lib/Dialect/Test/TestDialectInterfaces.cpp b/mlir/test/lib/Dialect/Test/TestDialectInterfaces.cpp
index 107dd55f6..2d6fa87b7 100644
--- a/mlir/test/lib/Dialect/Test/TestDialectInterfaces.cpp
+++ b/mlir/test/lib/Dialect/Test/TestDialectInterfaces.cpp
@@ -433,7 +433,8 @@ public:
     populateTestReductionPatterns(patterns);
   }
 
-  void populateReductionPatternsWithTester(RewritePatternSet &patterns, Tester &tester) const final {
+  void populateReductionPatternsWithTester(RewritePatternSet &patterns,
+                                           Tester &tester) const final {
     patterns.add<ReplaceOperandsPattern>(getContext(), tester);
   }
 };

``````````

</details>


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


More information about the Mlir-commits mailing list