[PATCH] D62686: [WIP][RISCV] Add support for save/restore of callee-saved registers via libcalls
Lewis Revill via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 31 05:44:07 PDT 2019
lewis-revill updated this revision to Diff 202421.
lewis-revill added a comment.
Herald added a subscriber: mgorny.
- Replaced split fixed/nonfixed vectors by simply interpreting the CSI vector differently depending if save/restore calls will be used or not.
- Add `UseSaveRestoreLibCalls` to `RISCVMachineFunctionInfo`, along with a modifying `getUseSaveRestoreLibCalls` accessor and a non-modifying `useSaveRestoreLibCalls` accessor.
- Add 'RISCVMachineFunctionInfo.cpp' to avoid having a `cl::opt` declared in a header file.
- Simplify `spillCalleeSavedRegisters` and `restoreCalleeSavedRegisters`.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62686/new/
https://reviews.llvm.org/D62686
Files:
lib/Target/RISCV/CMakeLists.txt
lib/Target/RISCV/RISCVFrameLowering.cpp
lib/Target/RISCV/RISCVFrameLowering.h
lib/Target/RISCV/RISCVMachineFunctionInfo.cpp
lib/Target/RISCV/RISCVMachineFunctionInfo.h
lib/Target/RISCV/RISCVRegisterInfo.cpp
lib/Target/RISCV/RISCVRegisterInfo.h
test/CodeGen/RISCV/saverestore.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62686.202421.patch
Type: text/x-patch
Size: 27247 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190531/46f01551/attachment-0001.bin>
More information about the llvm-commits
mailing list