[clang] [llvm] [RISCV] QCI Interrupt Support (PR #129957)
Sam Elliott via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 5 17:18:17 PST 2025
================
@@ -382,6 +410,10 @@ void RISCVFrameLowering::determineFrameLayout(MachineFunction &MF) const {
// Get the number of bytes to allocate from the FrameInfo.
uint64_t FrameSize = MFI.getStackSize();
+ // QCI Interrupts use at least 96 bytes of stack space
+ if (RVFI->useQCIInterrupt(MF))
+ FrameSize = std::max<uint64_t>(FrameSize, QCIInterruptPushAmount);
----------------
lenary wrote:
I think a previous version of my patch had a different type for the Push Amount, but yes I will drop this.
https://github.com/llvm/llvm-project/pull/129957
More information about the cfe-commits
mailing list