[Mlir-commits] [mlir] [MLIR][Linalg] Pattern to fold AddOp to accumulation via contraction op's dest (PR #110514)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Sep 30 07:27:37 PDT 2024


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 8f50dbd7b8a2ed7206d0ad4c90129c014eb032fb ea4e02bbbeb13462f400a46d6fa67b0800c2b173 --extensions cpp,h -- mlir/lib/Dialect/Linalg/Transforms/FoldAddIntoDest.cpp mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h mlir/include/mlir/Dialect/Linalg/Utils/Utils.h mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp mlir/lib/Dialect/Linalg/Utils/Utils.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Dialect/Linalg/Transforms/FoldAddIntoDest.cpp b/mlir/lib/Dialect/Linalg/Transforms/FoldAddIntoDest.cpp
index d8c4e338fd..a1f1a9813e 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/FoldAddIntoDest.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/FoldAddIntoDest.cpp
@@ -101,8 +101,7 @@ struct FoldAddIntoDest final : public OpRewritePattern<linalg::AddOp> {
   }
 };
 
-void linalg::populateFoldAddIntoDestPatterns(
-    RewritePatternSet &patterns) {
+void linalg::populateFoldAddIntoDestPatterns(RewritePatternSet &patterns) {
   // Replace linalg.add when destination passing suffices for achieving the sum.
   patterns.add<FoldAddIntoDest>(patterns.getContext());
 }

``````````

</details>


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


More information about the Mlir-commits mailing list