[llvm] [AArch64][SME2] Preserve ZT0 state around function calls (PR #76968)
Kerry McLaughlin via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 10 05:45:54 PST 2024
================
@@ -60,6 +67,12 @@ SMEAttrs::SMEAttrs(const AttributeList &Attrs) {
Bitmask |= ZA_New;
if (Attrs.hasFnAttr("aarch64_pstate_za_preserved"))
Bitmask |= ZA_Preserved;
+ if (Attrs.hasFnAttr("aarch64_sme_pstate_zt0_shared"))
+ Bitmask |= ZT_Shared;
+ if (Attrs.hasFnAttr("aarch64_sme_pstate_zt0_new"))
+ Bitmask |= ZT_New;
+ if (Attrs.hasFnAttr("aarch64_sme_pstate_zt0_preserved"))
+ Bitmask |= ZT_Preserved;
----------------
kmclaughlin-arm wrote:
The attribute names have been updated in https://github.com/llvm/llvm-project/pull/77607
https://github.com/llvm/llvm-project/pull/76968
More information about the llvm-commits
mailing list