[PATCH] D154837: [RISCV] Simplify the definitions of interrupt CSRs

Wang Pengcheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 10 05:31:25 PDT 2023


wangpc created this revision.
wangpc added reviewers: asb, craig.topper, jrtc27, apazos, kito-cheng.
Herald added subscribers: jobnoorman, luke, VincentWu, vkmr, frasercrmck, luismarques, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, 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.

For `CSR_Interrupt`, we can generate the register list via a single
`sequence`.

For `CSR_XLEN_F32_Interrupt` and `CSR_XLEN_F64_Interrupt`, I don't
see the reason why we need to keep the order the same as how we used
to allocate registers (and we have changed the order in D146488 <https://reviews.llvm.org/D146488>), so
I fold them into one `sequence`.

There are some *.ll changes because of the order change.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D154837

Files:
  llvm/lib/Target/RISCV/RISCVCallingConv.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: D154837.538592.patch
Type: text/x-patch
Size: 70606 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230710/3b5969dc/attachment.bin>


More information about the llvm-commits mailing list