[Mlir-commits] [mlir] [mlir][linalg] Restrict linalg.pack to not have extra padding sizes. (PR #149624)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Jul 18 17:52:46 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/Linalg/IR/LinalgOps.cpp mlir/lib/Dialect/Linalg/Transforms/PackAndUnpackPatterns.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
index 1d34d64b2..5f72cac21 100644
--- a/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
+++ b/mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
@@ -4690,7 +4690,7 @@ static LogicalResult commonVerifierPackAndUnPackOp(OpTy packOrUnPack) {
                          "tiled dimension in the packed type");
   }
   if (!isCompatibleShape(expectedPackedType.getShape(),
-                          packedType.getShape())) {
+                         packedType.getShape())) {
     return op->emitError("the shape of output is not large enough to hold the "
                          "packed data. Expected at least ")
            << expectedPackedType << ", got " << packedType;

``````````

</details>


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


More information about the Mlir-commits mailing list