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

Raphael Moreira Zinsly via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 27 04:12:58 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:

Ok, I created a opened a new one: https://github.com/llvm/llvm-project/pull/117871

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


More information about the cfe-commits mailing list