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

Visoiu Mistrih Francis via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 11 21:29:01 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[] = {
----------------
francisvm wrote:

```suggestion
static const std::pair<Register, int> FixedCSRFIMap[] = {
```

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


More information about the llvm-commits mailing list