[Mlir-commits] [mlir] [mlir][Utils] Add verifyIndexCount helper (NFC) (PR #176678)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Jan 22 20:04:14 PST 2026


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 origin/main HEAD --extensions h,cpp -- mlir/include/mlir/Dialect/Utils/VerificationUtils.h mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp mlir/lib/Dialect/Utils/VerificationUtils.cpp mlir/lib/Dialect/Vector/IR/VectorOps.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</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 401109813..d3fb06959 100644
--- a/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
+++ b/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
@@ -5530,7 +5530,8 @@ LogicalResult TransferWriteOp::verify() {
       maskType ? inferTransferOpMaskType(vectorType, permutationMap)
                : VectorType();
 
-  if (failed(verifyIndexCount(*this, shapedType, llvm::size(getIndices().size()))))
+  if (failed(
+          verifyIndexCount(*this, shapedType, llvm::size(getIndices().size()))))
     return failure();
 
   // We do not allow broadcast dimensions on TransferWriteOps for the moment,

``````````

</details>


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


More information about the Mlir-commits mailing list