[PATCH] D116631: [RISCV] Use macros to reduce repetive switch cases. NFC

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 4 15:40:37 PST 2022


craig.topper created this revision.
craig.topper added reviewers: asb, jrtc27, frasercrmck, HsiangKai, evandro, arcbbb, rogfer01, khchen.
Herald added subscribers: VincentWu, luke957, achieveartificialintelligence, StephenFan, vkmr, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, edward-jones, zzheng, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya.
craig.topper requested review of this revision.
Herald added a subscriber: MaskRay.
Herald added a project: LLVM.

These 3 switches map LMUL enum to instruction names. These follow
a regular pattern. Use a macro to reduce the number of source code
lines.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D116631

Files:
  llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116631.397418.patch
Type: text/x-patch
Size: 7433 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220104/b00474c5/attachment.bin>


More information about the llvm-commits mailing list