[llvm] [RISCV][WIP] Let RA do the CSR saves. (PR #90819)

Quentin Colombet via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 2 02:16:01 PST 2024


================
@@ -210,6 +211,11 @@ class TargetFrameLowering {
   /// for noreturn nounwind functions.
   virtual bool enableCalleeSaveSkip(const MachineFunction &MF) const;
 
+  virtual void emitCFIsForCSRsHandledByRA(MachineFunction &MF,
----------------
qcolombet wrote:

We need a comment here to tell backend authors what they are supposed to do with this hook and when they should consider implementing it.

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


More information about the llvm-commits mailing list