[RISCV][NFC] Rename callee saved regs 'CSR' to CSR_ILP32_LP64 and minor RISCVRegister...
authorAlex Bradbury <asb@lowrisc.org>
Thu, 14 Mar 2019 08:28:48 +0000 (08:28 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Thu, 14 Mar 2019 08:28:48 +0000 (08:28 +0000)
commit8dbc6398e17a957db0cfc4fc95d2d2d1517a3ed0
treef50270fa31472f9dcfbea9a57f5c39197cb6dd29
parentd08ed38e084b84db952b3c21fa759a81397675fb
[RISCV][NFC] Rename callee saved regs 'CSR' to CSR_ILP32_LP64 and minor RISCVRegisterInfo refactoring

The CSR renaming further prepares the way for an upcoming patch adding support for more
RISC-V ABIs.

Modify RISCVRegisterInfo::getCalleeSavedRegs and
RISCVRegisterInfo::getReservedRegs to do MF->getSubtarget<RISCVSubtarget>()
once rather than multiple times.

llvm-svn: 356123
llvm/lib/Target/RISCV/RISCVCallingConv.td
llvm/lib/Target/RISCV/RISCVRegisterInfo.cpp