[llvm] [RISCV] Register fixed stack slots for callee saved registers for -ms… (PR #81392)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 11 22:55:37 PST 2024


================
@@ -1403,6 +1361,93 @@ RISCVFrameLowering::getFirstSPAdjustAmount(const MachineFunction &MF) const {
   return 0;
 }
 
+// Frame indexes representing locations of CSRs which are given a fixed location
+// by save/restore libcalls or Zcmp Push/Pop.
+static const std::pair<unsigned, int> FixedCSRFIMap[] = {
----------------
topperc wrote:

It should probably be MCPhysReg

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


More information about the llvm-commits mailing list