[PATCH] D157749: [RISCV] Change naming of vector pseudos with scalar FP operand.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 11 12:20:37 PDT 2023


craig.topper created this revision.
craig.topper added reviewers: wangpc, joshua-arch1, michaelmaitland, reames, kito-cheng.
Herald added subscribers: jobnoorman, luke, 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, asb, hiraditya, arichardson.
Herald added a project: All.
craig.topper requested review of this revision.
Herald added subscribers: eopXD, MaskRay.
Herald added a project: LLVM.

We need a pseudo for each scalar FP register class. Previously
we distinquished the pseudos by naming them with F16 <https://reviews.llvm.org/F16>, F32 <https://reviews.llvm.org/F32>, F64 <https://reviews.llvm.org/F64>, or
BF16 in place of the F in the normal instruction name.

Because these strings can appear in other parts of the name we had
to do things like matching "_VBF16" to "_VF".

This patch replaces the F16 <https://reviews.llvm.org/F16>, F32 <https://reviews.llvm.org/F32>, F64 <https://reviews.llvm.org/F64> strings with FPR16, FPR32, and
FPR64. We also use FPR16 for BF16 since that is the scalar register
class for bf16.

Since the FPR16/32/64 string does not anywhere else in the pseudo
names, we can use this to simplify the string replacements. This
also allows us to simplify some BF16 related code.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D157749

Files:
  llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
  llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157749.549488.patch
Type: text/x-patch
Size: 5089 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230811/d9bb28b5/attachment.bin>


More information about the llvm-commits mailing list