[clang] [llvm] [RISCV] Add stack clash protection (PR #117612)

Raphael Moreira Zinsly via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 26 13:32:00 PST 2024


================
@@ -610,22 +610,134 @@ static MCCFIInstruction createDefCFAOffset(const TargetRegisterInfo &TRI,
                                         Comment.str());
 }
 
+// Allocate stack space and probe it if necessary.
 void RISCVFrameLowering::allocateStack(MachineBasicBlock &MBB,
                                        MachineBasicBlock::iterator MBBI,
-                                       StackOffset Offset, bool EmitCFI,
-                                       unsigned CFIIndex) const {
----------------
rzinsly wrote:

I separated in another commit, should it be in another PR?

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


More information about the cfe-commits mailing list