Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,8 @@ class AArch64FunctionInfo final : public MachineFunctionInfo {
}

void setStackSizeSVE(uint64_t ZPR, uint64_t PPR) {
assert(isAligned(Align(16), ZPR) && isAligned(Align(16), PPR) &&
"expected SVE stack sizes to be aligned to 16-bytes");
StackSizeZPR = ZPR;
StackSizePPR = PPR;
HasCalculatedStackSizeSVE = true;
Expand Down Expand Up @@ -425,6 +427,8 @@ class AArch64FunctionInfo final : public MachineFunctionInfo {

// Saves the CalleeSavedStackSize for SVE vectors in 'scalable bytes'
void setSVECalleeSavedStackSize(unsigned ZPR, unsigned PPR) {
assert(isAligned(Align(16), ZPR) && isAligned(Align(16), PPR) &&
"expected SVE callee-save sizes to be aligned to 16-bytes");
ZPRCalleeSavedStackSize = ZPR;
PPRCalleeSavedStackSize = PPR;
HasSVECalleeSavedStackSize = true;
Expand Down
Loading