[PATCH] D158492: [RISCV] Add CSR RegisterClass and save/restore fcsr in interrupt
Wang Pengcheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 22 01:06:28 PDT 2023
wangpc created this revision.
wangpc added reviewers: Yunzezhu, craig.topper, asb, kito-cheng, zixuan-wu.
Herald added subscribers: jobnoorman, luke, sunshaoce, VincentWu, vkmr, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
wangpc requested review of this revision.
Herald added subscribers: llvm-commits, eopXD, MaskRay.
Herald added a project: LLVM.
We add a new RegisterClass to represent CSRs and modify
storeRegToStackSlot/loadRegFromStackSlot so that we can
save/restore these CSRs.
This is an alternative of D158396 <https://reviews.llvm.org/D158396>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D158492
Files:
llvm/lib/Target/RISCV/RISCVCallingConv.td
llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
llvm/lib/Target/RISCV/RISCVRegisterInfo.td
llvm/test/CodeGen/RISCV/interrupt-attr-nocall.ll
llvm/test/CodeGen/RISCV/interrupt-attr.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158492.552252.patch
Type: text/x-patch
Size: 72982 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230822/c81da4ca/attachment.bin>
More information about the llvm-commits
mailing list