[PATCH] D151177: [RISCV] Add i32 as a legal type for GPR register class.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 22 20:42:46 PDT 2023
craig.topper created this revision.
craig.topper added reviewers: asb, luismarques, reames, sunshaoce, jrtc27.
Herald added subscribers: jobnoorman, luke, VincentWu, vkmr, frasercrmck, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya, arichardson.
Herald added a project: All.
craig.topper requested review of this revision.
Herald added subscribers: pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.
I'm investigating if it is feasible to have i32 as a legal type for RV64.
The first thing we need to do is make i32 a valid type for the GPR
register class.
Unfortunately, this disables a lot of type inferencing in tablegen
and requires us to explicitly add XLenVT to many isel patterns.
This might also allow us to get rid of the GPRF16/32/64 register class
from Zhinx/Zfinx/Zdinx by adding f16/f32/f64 to GPR type. Those classes
appear to only exist for type inference purposes today. In all other ways
they are identical to the GPR class.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D151177
Files:
llvm/lib/Target/RISCV/RISCVInstrInfo.td
llvm/lib/Target/RISCV/RISCVInstrInfoA.td
llvm/lib/Target/RISCV/RISCVInstrInfoD.td
llvm/lib/Target/RISCV/RISCVInstrInfoF.td
llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
llvm/lib/Target/RISCV/RISCVInstrInfoVSDPatterns.td
llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
llvm/lib/Target/RISCV/RISCVInstrInfoXTHead.td
llvm/lib/Target/RISCV/RISCVInstrInfoXVentana.td
llvm/lib/Target/RISCV/RISCVInstrInfoZb.td
llvm/lib/Target/RISCV/RISCVInstrInfoZfh.td
llvm/lib/Target/RISCV/RISCVInstrInfoZicond.td
llvm/lib/Target/RISCV/RISCVInstrInfoZk.td
llvm/lib/Target/RISCV/RISCVRegisterInfo.td
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151177.524559.patch
Type: text/x-patch
Size: 51463 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230523/09740ee1/attachment.bin>
More information about the llvm-commits
mailing list