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

Gaƫtan Bossu via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Sep 1 08:51:02 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);
----------------
gbossu wrote:

Also, are `IsAgnosticZA` and `!IsAgnosticZA` the two types of functions we'll ever have have to handle? If not, should we already turn this into an enum?

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


More information about the llvm-branch-commits mailing list