[clang] [AArch64]: Refactor target parser to use Bitset. (PR #65423)

via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 12 04:13:59 PDT 2023


================
@@ -273,7 +275,8 @@ struct ArchInfo {
   ArchProfile Profile;   // Architecuture profile
   StringRef Name;        // Human readable name, e.g. "armv8.1-a"
   StringRef ArchFeature; // Command line feature flag, e.g. +v8a
-  uint64_t DefaultExts;  // bitfield of default extensions ArchExtKind
+  Bitset<AArch64::AEK_EXTENSIONS_LAST>
----------------
sdesmalen-arm wrote:

Instead of writing `Bitset<...>` everywhere, can you create a typedef here, which makes this easier to use in other places? e.g.
```using FeatureBitset = Bitset<...>;```
That will also make the tests and the global initializers a bit simpler.

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


More information about the cfe-commits mailing list