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

via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 30 02:13:26 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())
----------------
CarolineConcatto wrote:

I was thinking about using FeatureLookupBuilder  that Ben used for clang, but looking at your patch now it does not have a switch statement as it had before

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


More information about the llvm-commits mailing list