[llvm] [AArch64][SME] Implement the SME ABI (ZA state management) in Machine IR (PR #149062)

Paul Walker via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 7 09:02:24 PDT 2025


================
@@ -128,7 +129,7 @@ class AArch64Subtarget final : public AArch64GenSubtargetInfo {
                    unsigned MinSVEVectorSizeInBitsOverride = 0,
                    unsigned MaxSVEVectorSizeInBitsOverride = 0,
                    bool IsStreaming = false, bool IsStreamingCompatible = false,
-                   bool HasMinSize = false);
+                   bool HasMinSize = false, bool UseNewSMEABILowering = false);
----------------
paulwalker-arm wrote:

Do you expect (or is it even valid) to switch the ABI lowering on a per function basis? If not, then I don't think this needs to be part of the construction data? and `useNewSMEABILowering()` can just return the value of the common line option.

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


More information about the llvm-commits mailing list