[llvm] [RISCV][MC] Prioritize features in MultiMismatchFallback (PR #215737)

Sam Elliott via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 24 20:09:59 PDT 2026


================
@@ -1866,6 +1866,15 @@ class AsmParser {
   // messages.
   bit ReportMultipleNearMisses = false;
 
+  // PrioritizeFeatureInMultiMismatchFallback -
+  // When 0, retain the first operand near-miss as the fallback diagnostic when an
+  // instruction has multiple invalid operands.
+  // When 1, prioritize a feature near-miss over the first operand near-miss when
+  // recording a MultiMismatchFallback entry, so that diagnostics point to the
+  // missing extension rather than an operand mismatch.
+  // Only effective when ReportMultipleNearMisses is also 1.
+  bit PrioritizeFeatureInMultiMismatchFallback = false;
----------------
lenary wrote:

What happens if we do get rid of this and push the change through for ARM too? Is it just a lot of changes to review?

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


More information about the llvm-commits mailing list