[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:44:38 PST 2024
================
@@ -82,6 +93,13 @@ class SMEAttrs {
bool hasZAState() const {
return hasNewZABody() || hasSharedZAInterface();
}
+
+ // Interfaces to query ZT0 state
+ bool hasNewZTBody() const { return Bitmask & ZT_New; }
+ bool hasSharedZTInterface() const { return Bitmask & ZT_Shared; }
----------------
kmclaughlin-arm wrote:
This has been renamed to `sharesZT0()` 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