[Mlir-commits] [mlir] [mlir] Improve dialect conversion failure diagnostics (PR #182729)
Matthias Springer
llvmlistbot at llvm.org
Sun Mar 1 23:21:26 PST 2026
================
@@ -2510,6 +2530,9 @@ class OperationLegalizer {
/// The pattern applicator to use for conversions.
PatternApplicator applicator;
+
+ /// The last conversion pattern that failed to match for a given op.
+ DenseMap<Operation *, const Pattern *> failedPatternByOp;
----------------
matthias-springer wrote:
Can you put this in a separate PR? I'm still in the fence if we actually want to print this. There are often multiple patterns that can apply and this will just print the last one. You can also get this information from `-debug`.
https://github.com/llvm/llvm-project/pull/182729
More information about the Mlir-commits
mailing list