[RISCV] Use InstVisitor in RISCVCodeGenPrepare. NFC
authorCraig Topper <craig.topper@sifive.com>
Wed, 3 Aug 2022 04:19:30 +0000 (21:19 -0700)
committerCraig Topper <craig.topper@sifive.com>
Wed, 3 Aug 2022 04:19:30 +0000 (21:19 -0700)
commitf19497f7b0ce0dab5d35054e7ba652164b9ac123
tree46b5bd1685cc9cf7211aa02e97cfd695db35d1f3
parentd179ea12fd3186690cb9c630be03ab98b42c5448
[RISCV] Use InstVisitor in RISCVCodeGenPrepare. NFC

Makes it easy to add new instructions to look at without dispatching
manually.
llvm/lib/Target/RISCV/RISCVCodeGenPrepare.cpp