[llvm] [NFC][AsmMatcher] Add Commented Name for FeatureBitsets (PR #190688)

via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 6 14:15:22 PDT 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-tablegen

Author: Sam Elliott (lenary)

<details>
<summary>Changes</summary>

This makes it easier to debug which features a specific mnemonic requires.

---
Full diff: https://github.com/llvm/llvm-project/pull/190688.diff


1 Files Affected:

- (modified) llvm/utils/TableGen/AsmMatcherEmitter.cpp (+1-1) 


``````````diff
diff --git a/llvm/utils/TableGen/AsmMatcherEmitter.cpp b/llvm/utils/TableGen/AsmMatcherEmitter.cpp
index cfd72737890fe..08d23f45313e0 100644
--- a/llvm/utils/TableGen/AsmMatcherEmitter.cpp
+++ b/llvm/utils/TableGen/AsmMatcherEmitter.cpp
@@ -3602,7 +3602,7 @@ void AsmMatcherEmitter::run(raw_ostream &OS) {
       assert(I != Info.SubtargetFeatures.end() && "Didn't import predicate?");
       OS << I->second.getEnumBitName() << ", ";
     }
-    OS << "},\n";
+    OS << "}, // " << getNameForFeatureBitset(FeatureBitset) << "\n";
   }
   OS << "};\n\n";
 

``````````

</details>


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


More information about the llvm-commits mailing list