[RISCV][NFC]: Refactor classes for load/store instructions of RVV
authorBin Cheng <bin.cheng@linux.alibaba.com>
Thu, 4 Nov 2021 10:05:48 +0000 (18:05 +0800)
committerBin Cheng <bin.cheng@linux.alibaba.com>
Sat, 6 Nov 2021 02:48:03 +0000 (10:48 +0800)
commitd488f1fff2029c6edd8f03e0567f094c2562a8b6
treea349f01de3538735c5151cacc0f65793e3d52054
parent87e53a0ad8557162bc074e982df914beb9afa84d
[RISCV][NFC]: Refactor classes for load/store instructions of RVV

This patch refactors classes for load/store of V extension by:
- Introduce new class for VUnitStrideLoadFF and VUnitStrideSegmentLoadFF
  so that uses of L/SUMOP* are not spread around different places.
- Reorder classes for Unit-Stride load/store in line with table
  describing lumop/sumop in riscv-v-spec.pdf.

Reviewed By: HsiangKai, craig.topper

Differential Revision: https://reviews.llvm.org/D109318
llvm/lib/Target/RISCV/RISCVInstrInfoV.td