[llvm-branch-commits] [llvm] [AArch64][SME] Support agnostic ZA functions in the MachineSMEABIPass (PR #149064)

Sander de Smalen via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Sep 1 07:39:53 PDT 2025


================
@@ -200,7 +200,7 @@ struct MachineSMEABI : public MachineFunctionPass {
 
   /// Inserts code to handle changes between ZA states within the function.
   /// E.g., ACTIVE -> LOCAL_SAVED will insert code required to save ZA.
-  void insertStateChanges();
+  void insertStateChanges(bool IsAgnosticZA);
----------------
sdesmalen-arm wrote:

nit: Rather than passing this everywhere, maybe just cache this locally in the `MachineSMEABI` struct?

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


More information about the llvm-branch-commits mailing list