[clang] [AArch64][Clang] Add support for __arm_agnostic("sme_za_state") (PR #121788)

Benjamin Maxwell via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 6 08:35:59 PST 2025


================
@@ -4593,9 +4593,14 @@ class FunctionType : public Type {
     SME_ZT0Shift = 5,
     SME_ZT0Mask = 0b111 << SME_ZT0Shift,
 
+    // A bit to tell whether a function is agnostic about sme ZA state.
+    SME_AgnosticZAStateShift = 8,
+    SME_AgnosticZAStateMask = 1 << SME_AgnosticZAStateShift,
+
     SME_AttributeMask =
-        0b111'111'11 // We can't support more than 8 bits because of
-                     // the bitmask in FunctionTypeExtraBitfields.
+        0b1'111'111'11 // We can't support more than 16 bits because of
+                       // the bitmask in FunctionTypeArmAttributes
+                       // and ExtProtoInfo.
----------------
MacDue wrote:

Looks like it's 9 bits (in FunctionTypeArmAttributes and ExtProtoInfo), not 16 bits? 

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


More information about the cfe-commits mailing list