[Mlir-commits] [mlir] [mlir][tensor] Generalize/restrict `GeneralizeOuterUnitDimsPackOpPattern` (PR #114315)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Nov 6 02:55:17 PST 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 08411c855f77bd7416725c280ad3dccdc00b7dd6 99d24b7abf8454c6cc1a40137748a2d3e1e6b571 --extensions cpp,h -- mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h mlir/include/mlir/Dialect/Utils/StaticValueUtils.h mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp mlir/lib/Dialect/Utils/StaticValueUtils.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp b/mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
index d5f1d14f89..2097883530 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
@@ -1213,8 +1213,8 @@ LogicalResult GeneralizeOuterUnitDimsPackOpPattern::matchAndRewrite(
}
applyPermutationToVector<OpFoldResult>(transShapeForEmptyOpDynamic, perm);
- Value empty = rewriter.create<tensor::EmptyOp>(
- loc, transShapeForEmptyOpDynamic, elemType);
+ Value empty = rewriter.create<tensor::EmptyOp>(
+ loc, transShapeForEmptyOpDynamic, elemType);
// 2.2 Create linalg.transpose
auto transposedOp =
``````````
</details>
https://github.com/llvm/llvm-project/pull/114315
More information about the Mlir-commits
mailing list