[Mlir-commits] [mlir] [mlir][vector][nfc] Replace `failure()` with `notifyMatchFailure()` (PR #129278)

Javed Absar llvmlistbot at llvm.org
Thu Mar 6 06:24:14 PST 2025


================
@@ -549,22 +549,26 @@ struct Strategy<TransferWriteOp> {
 };
 
 template <typename OpTy>
-LogicalResult checkPrepareXferOp(OpTy xferOp,
-                                 VectorTransferToSCFOptions options) {
+static LogicalResult checkPrepareXferOp(OpTy xferOp, PatternRewriter &rewriter,
+                                        VectorTransferToSCFOptions options) {
   if (xferOp->hasAttr(kPassLabel))
-    return failure();
+    return rewriter.notifyMatchFailure(
+        xferOp, "kPassLabel is present (progressing lowering in progress)");
----------------
javedabsar1 wrote:

`(progressing lowering in progress)` 
maybe (vector-to-scf lowering in progress)?

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


More information about the Mlir-commits mailing list