[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 8 13:36:57 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:
These historically haven't been allowed in `.arch` directives. But could they be allowed? That would shrink this diff size down.
https://github.com/llvm/llvm-project/pull/191045
More information about the llvm-commits
mailing list