[llvm] [AArch64][SME2] Preserve ZT0 state around function calls (PR #76968)

Sander de Smalen via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 8 06:21:12 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; }
----------------
sdesmalen-arm wrote:

Just pointing out that all these interfaces are missing `0` in `ZT0`.

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


More information about the llvm-commits mailing list