[Mlir-commits] [mlir] [mlir][vector] Fix parser of vector.transfer_read (PR #133721)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Apr 2 18:36:28 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/Vector/IR/VectorOps.cpp
``````````

</details>

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

``````````diff
diff --git a/mlir/lib/Dialect/Vector/IR/VectorOps.cpp b/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
index 8126bf0c5..3b8c5a2f8 100644
--- a/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
+++ b/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
@@ -4265,8 +4265,9 @@ ParseResult TransferReadOp::parse(OpAsmParser &parser, OperationState &result) {
   if (!permMapAttr) {
     permMap = getTransferMinorIdentityMap(shapedType, vectorType);
     if (!permMap) {
-      return parser.emitError(
-          typesLoc, "failed to create a minor identity map, source rank is less than required for vector rank");
+      return parser.emitError(typesLoc,
+                              "failed to create a minor identity map, source "
+                              "rank is less than required for vector rank");
     }
     result.attributes.set(permMapAttrName, AffineMapAttr::get(permMap));
   } else {
@@ -4677,8 +4678,9 @@ ParseResult TransferWriteOp::parse(OpAsmParser &parser,
   if (!permMapAttr) {
     permMap = getTransferMinorIdentityMap(shapedType, vectorType);
     if (!permMap) {
-      return parser.emitError(
-          typesLoc, "failed to create a minor identity map, result rank is less than required for vector rank");
+      return parser.emitError(typesLoc,
+                              "failed to create a minor identity map, result "
+                              "rank is less than required for vector rank");
     }
     result.attributes.set(permMapAttrName, AffineMapAttr::get(permMap));
   } else {

``````````

</details>


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


More information about the Mlir-commits mailing list