[PATCH] D48411: [RISCV] Add support for _interrupt attribute

Ana Pazos via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 10 15:01:40 PDT 2018


apazos added inline comments.


================
Comment at: lib/Target/RISCV/RISCVCallingConv.td:31
+// unconditionally save all Caller saved registers.
+def CSR_Interrupt_With_Call :  CalleeSavedRegs<(add X1, X3, X4, X5, X6, X7,
+    (sequence "X%u", 10, 17),
----------------
Note that CSR_Interrupt_With_Call is only used to provide a list of registers that need to be unconditionally saved. It is not used by
getCalleeSavedRegs nor getCallPreservedMask. Maybe the reuse of the class CalleeSavedRegs is confusing? I wanted to avoid listing each register in RISCVFrameLowering::determineCalleeSave. 


https://reviews.llvm.org/D48411





More information about the llvm-commits mailing list