[clang] [llvm] [RISCV] QCI Interrupt Support (PR #129957)

Craig Topper via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 5 17:14:45 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);
----------------
topperc wrote:

why is the `<uint64_t>` needed? I think both operands have the same type so it should be inferred

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


More information about the cfe-commits mailing list