[Mlir-commits] [mlir] MLIR Rewriters: add new listener to emit match failures to user, enhance docs (PR #94130)

Mehdi Amini llvmlistbot at llvm.org
Sun Jun 2 22:38:47 PDT 2024


================
@@ -1620,6 +1620,8 @@ void ConversionPatternRewriterImpl::notifyMatchFailure(
     if (config.notifyCallback)
       config.notifyCallback(diag);
   });
+  if (config.listener)
+    config.listener->notifyMatchFailure(loc, reasonCallback);
----------------
joker-eph wrote:

matchFailure are meant to be eliminated entirely from a release build, as such the entire body of this method is intentionally behind LLVM_DEBUG.

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


More information about the Mlir-commits mailing list