[llvm-branch-commits] [llvm] [AArch64] Prepare for split ZPR and PPR area allocation (NFCI) (PR #142391)
Sander de Smalen via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Jul 7 09:04:23 PDT 2025
================
@@ -299,14 +297,20 @@ class AArch64FunctionInfo final : public MachineFunctionInfo {
TailCallReservedStack = bytes;
}
- bool hasCalculatedStackSizeSVE() const { return HasCalculatedStackSizeSVE; }
+ void setStackSizeZPR(uint64_t S) {
+ HasCalculatedStackSizeSVE = true;
+ StackSizeZPR = S;
+ }
- void setStackSizeSVE(uint64_t S) {
+ void setStackSizePPR(uint64_t S) {
HasCalculatedStackSizeSVE = true;
- StackSizeSVE = S;
+ StackSizePPR = S;
}
- uint64_t getStackSizeSVE() const { return StackSizeSVE; }
+ uint64_t getStackSizeZPR() const { return StackSizeZPR; }
----------------
sdesmalen-arm wrote:
not related to your PR, but I think we should add an assert that `HasCalculatedStackSizeSVE` is true (same for CalleeSavedStackSize), although unfortunately that currently leads to some failures where they're used.
https://github.com/llvm/llvm-project/pull/142391
More information about the llvm-branch-commits
mailing list