[Mlir-commits] [mlir] Let memref.collapse_shape implement ReifyRankedShapedTypeOpInterface. (PR #138452)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue May 6 14:13:34 PDT 2025


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 HEAD~1 HEAD --extensions cpp -- mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp b/mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
index 95805204b..8127e7a04 100644
--- a/mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
+++ b/mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
@@ -2481,10 +2481,10 @@ MemRefType CollapseShapeOp::computeCollapsedType(
                          srcType.getMemorySpace());
 }
 
-// This method handles groups of dimensions where at least one dimension is dynamic.
-// For each such group, it computes the combined size by multiplying all the sizes
-// of the dimensions in that group. These computed sizes are then used to describe
-// the resulting shape after collapsing.
+// This method handles groups of dimensions where at least one dimension is
+// dynamic. For each such group, it computes the combined size by multiplying
+// all the sizes of the dimensions in that group. These computed sizes are then
+// used to describe the resulting shape after collapsing.
 LogicalResult CollapseShapeOp::reifyResultShapes(
     OpBuilder &builder, ReifiedRankedShapedTypeDims &reifiedResultShapes) {
   SmallVector<ReassociationIndices, 4> reassociationArray =

``````````

</details>


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


More information about the Mlir-commits mailing list