[flang-commits] [llvm] [flang] [clang] [AArch64][Driver] Better handling of target feature dependencies (PR #78270)

David Spickett via flang-commits flang-commits at lists.llvm.org
Wed Jan 17 05:55:26 PST 2024


================
@@ -308,6 +312,94 @@ inline constexpr ExtensionInfo Extensions[] = {
 };
 // clang-format on
 
+struct ExtensionSet {
+  // Set of extensions which are currently enabled.
+  ExtensionBitset Enabled;
+  // Set of extensions which have been enabled or disabled at any point. Used
+  // to avoid cluttering the cc1 command-line with lots of unneeded features.
+  ExtensionBitset Touched;
----------------
DavidSpickett wrote:

Meaning, if extension foo starts as disabled and is never changed or updated, there wouldn't be a "+nofoo" produced?

Which seems correct, just making sure I understand.

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


More information about the flang-commits mailing list