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

via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 11 06:18:56 PDT 2023


================
@@ -1605,13 +1691,14 @@ TEST(TargetParserTest, AArch64ExtensionFeatures) {
 
   std::vector<StringRef> Features;
 
-  uint64_t ExtVal = 0;
+  Bitset<AArch64::AEK_EXTENSIONS_MAX> ExtVal;
   for (auto Ext : Extensions)
-    ExtVal |= Ext;
+    ExtVal.set(Ext);
----------------
hassnaaHamdi wrote:

It's works only for the object. Ext should be an object of Bitset to work.

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


More information about the cfe-commits mailing list