@@ -268,7 +268,7 @@ static void emitSCSEpilogue(MachineFunction &MF, MachineBasicBlock &MBB,
268268}
269269
270270// Insert instruction to swap mscratchsw with sp
271- static void emitSifiveCLICStackSwap (MachineFunction &MF, MachineBasicBlock &MBB,
271+ static void emitSiFiveCLICStackSwap (MachineFunction &MF, MachineBasicBlock &MBB,
272272 MachineBasicBlock::iterator MBBI,
273273 const DebugLoc &DL) {
274274 auto *RVFI = MF.getInfo <RISCVMachineFunctionInfo>();
@@ -302,7 +302,7 @@ createSiFivePreemptibleInterruptFrameEntries(MachineFunction &MF,
302302 MachineFrameInfo &MFI = MF.getFrameInfo ();
303303
304304 // Create two frame objects for spilling X8 and X9, which will be done in
305- // `emitSifiveCLICPreemptibleSaves `. This is in addition to any other stack
305+ // `emitSiFiveCLICPreemptibleSaves `. This is in addition to any other stack
306306 // objects we might have for X8 and X9, as they might be saved twice.
307307 for (int I = 0 ; I < 2 ; ++I) {
308308 int FI = MFI.CreateStackObject (TRI.getSpillSize (RC), TRI.getSpillAlign (RC),
@@ -311,7 +311,7 @@ createSiFivePreemptibleInterruptFrameEntries(MachineFunction &MF,
311311 }
312312}
313313
314- static void emitSifiveCLICPreemptibleSaves (MachineFunction &MF,
314+ static void emitSiFiveCLICPreemptibleSaves (MachineFunction &MF,
315315 MachineBasicBlock &MBB,
316316 MachineBasicBlock::iterator MBBI,
317317 const DebugLoc &DL) {
@@ -363,7 +363,7 @@ static void emitSifiveCLICPreemptibleSaves(MachineFunction &MF,
363363 .setMIFlag (MachineInstr::FrameSetup);
364364}
365365
366- static void emitSifiveCLICPreemptibleRestores (MachineFunction &MF,
366+ static void emitSiFiveCLICPreemptibleRestores (MachineFunction &MF,
367367 MachineBasicBlock &MBB,
368368 MachineBasicBlock::iterator MBBI,
369369 const DebugLoc &DL) {
@@ -386,7 +386,7 @@ static void emitSifiveCLICPreemptibleRestores(MachineFunction &MF,
386386
387387 // Restore `mepc` from x9 (s1), and `mcause` from x8 (s0). If either were used
388388 // in the function, they have already been restored once, so now have the
389- // value stored in `emitSifiveCLICPreemptibleSaves `.
389+ // value stored in `emitSiFiveCLICPreemptibleSaves `.
390390 BuildMI (MBB, MBBI, DL, TII->get (RISCV::CSRRW))
391391 .addReg (RISCV::X0)
392392 .addImm (RISCVSysReg::mepc)
@@ -399,7 +399,7 @@ static void emitSifiveCLICPreemptibleRestores(MachineFunction &MF,
399399 .setMIFlag (MachineInstr::FrameSetup);
400400
401401 // X8 and X9 need to be restored to their values on function entry, which we
402- // saved onto the stack in `emitSifiveCLICPreemptibleSaves `.
402+ // saved onto the stack in `emitSiFiveCLICPreemptibleSaves `.
403403 TII->loadRegFromStackSlot (MBB, MBBI, RISCV::X9,
404404 RVFI->getInterruptCSRFrameIndex (1 ),
405405 &RISCV::GPRRegClass, STI.getRegisterInfo (),
@@ -1016,7 +1016,7 @@ void RISCVFrameLowering::emitPrologue(MachineFunction &MF,
10161016 return ;
10171017
10181018 // SiFive CLIC needs to swap `sp` into `mscratchcsw`
1019- emitSifiveCLICStackSwap (MF, MBB, MBBI, DL);
1019+ emitSiFiveCLICStackSwap (MF, MBB, MBBI, DL);
10201020
10211021 // Emit prologue for shadow call stack.
10221022 emitSCSPrologue (MF, MBB, MBBI, DL);
@@ -1138,7 +1138,7 @@ void RISCVFrameLowering::emitPrologue(MachineFunction &MF,
11381138 NeedProbe, ProbeSize, DynAllocation);
11391139
11401140 // Save SiFive CLIC CSRs into Stack
1141- emitSifiveCLICPreemptibleSaves (MF, MBB, MBBI, DL);
1141+ emitSiFiveCLICPreemptibleSaves (MF, MBB, MBBI, DL);
11421142
11431143 // The frame pointer is callee-saved, and code has been generated for us to
11441144 // save it to the stack. We need to skip over the storing of callee-saved
@@ -1456,7 +1456,7 @@ void RISCVFrameLowering::emitEpilogue(MachineFunction &MF,
14561456 }
14571457 }
14581458
1459- emitSifiveCLICPreemptibleRestores (MF, MBB, MBBI, DL);
1459+ emitSiFiveCLICPreemptibleRestores (MF, MBB, MBBI, DL);
14601460
14611461 // Deallocate stack if StackSize isn't a zero yet
14621462 if (StackSize != 0 )
@@ -1466,7 +1466,7 @@ void RISCVFrameLowering::emitEpilogue(MachineFunction &MF,
14661466 emitSCSEpilogue (MF, MBB, MBBI, DL);
14671467
14681468 //
1469- emitSifiveCLICStackSwap (MF, MBB, MBBI, DL);
1469+ emitSiFiveCLICStackSwap (MF, MBB, MBBI, DL);
14701470}
14711471
14721472StackOffset
0 commit comments