[Mlir-commits] [mlir] [mlir][vector][nfc] Replace `failure()` with `notifyMatchFailure()` (PR #129278)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sat Mar 1 10:44:40 PST 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 1aea0241f1cce9eb4eba3e4add3be9370e30e415 c4cfdc68c32b528a764a2037c5e264231aa12ab9 --extensions cpp -- mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp b/mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
index d1b4fe16fc..624b9dfb59 100644
--- a/mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
+++ b/mlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
@@ -918,8 +918,8 @@ struct TransferOpConversion : public VectorToSCFPattern<OpTy> {
auto dataBufferType = dyn_cast<MemRefType>(dataBuffer.getType());
FailureOr<MemRefType> castedDataType = unpackOneDim(dataBufferType);
if (failed(castedDataType))
- return rewriter.notifyMatchFailure(
- xferOp, "Failed to unpack one vector dim.");
+ return rewriter.notifyMatchFailure(xferOp,
+ "Failed to unpack one vector dim.");
auto castedDataBuffer =
locB.create<vector::TypeCastOp>(*castedDataType, dataBuffer);
``````````
</details>
https://github.com/llvm/llvm-project/pull/129278
More information about the Mlir-commits
mailing list