[llvm] [AArch64][llvm] Generate asm parser extension map from TableGen (NFC) (PR #191045)

Jonathan Thackray via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 29 06:24:12 PDT 2026


================
@@ -53,6 +54,66 @@ static void checkFeatureTree(const Record *Root) {
   }
 }
 
+static bool allowInAArch64AsmParserDirective(const Record *Rec) {
+  // The generated asm parser extension table is used for both directive lookup
+  // and required-feature diagnostics. Some extensions still need to appear in
+  // diagnostics, but must not be accepted by .arch/.arch_extension/.cpu.
+  return StringSwitch<bool>(Rec->getName())
----------------
jthackray wrote:

Yes, I've adjusted this to use `SmallDenseSet<>` instead. I've run some tests with LNT, but it doesn't show any difference.

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


More information about the llvm-commits mailing list