[Mlir-commits] [mlir] [mlir] [linalg] Add canonicalize pattern to swap transpose with broadcast (PR #97063)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sat Jul 6 17:57:55 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 a139f8480f200a673e184b1a7d1907a3e16cca56 7a64804c562c7d5c92231c126f47c1c32f993bd8 -- mlir/include/mlir/Dialect/Utils/IndexingUtils.h mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp mlir/lib/Dialect/Utils/IndexingUtils.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Dialect/Utils/IndexingUtils.cpp b/mlir/lib/Dialect/Utils/IndexingUtils.cpp
index bf508f9a7f..ddc1129a5a 100644
--- a/mlir/lib/Dialect/Utils/IndexingUtils.cpp
+++ b/mlir/lib/Dialect/Utils/IndexingUtils.cpp
@@ -252,8 +252,8 @@ mlir::computePermutationVector(int64_t permSize, ArrayRef<int64_t> positions,
   return res;
 }
 
-SmallVector<int64_t>
-mlir::dropDims(ArrayRef<int64_t> inputPerm, ArrayRef<int64_t> dropPositions) {
+SmallVector<int64_t> mlir::dropDims(ArrayRef<int64_t> inputPerm,
+                                    ArrayRef<int64_t> dropPositions) {
   assert(inputPerm.size() >= dropPositions.size() &&
          "expect inputPerm size large than position to drop");
   SmallVector<int64_t> res;

``````````

</details>


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


More information about the Mlir-commits mailing list