[PATCH] D62686: [WIP][RISCV] Add support for save/restore of CSRs via libcalls
Lewis Revill via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 30 09:04:49 PDT 2019
lewis-revill created this revision.
lewis-revill added reviewers: asb, edward-jones.
Herald added subscribers: llvm-commits, benna, psnobl, jocewei, PkmX, rkruppe, the_o, brucehoult, MartinMosbeck, rogfer01, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, apazos, johnrusso, rbar.
Herald added a project: LLVM.
This patch adds the support required for using the __riscv_save and __riscv_restore libcalls to implement a size-optimization for prologue and epilogue code, whereby the spill and restore code of callee-saved registers is implemented by common functions to reduce code duplication.
The initial prototype for this patch was implemented by @simoncook
Repository:
rL LLVM
https://reviews.llvm.org/D62686
Files:
lib/Target/RISCV/RISCVFrameLowering.cpp
lib/Target/RISCV/RISCVFrameLowering.h
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.202221.patch
Type: text/x-patch
Size: 25960 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190530/9e394663/attachment.bin>
More information about the llvm-commits
mailing list