[RISCV] Convert VSLIDE(UP|DOWN) nodes to "VL" versions (NFC)
authorFraser Cormack <fraser@codeplay.com>
Thu, 11 Feb 2021 15:01:40 +0000 (15:01 +0000)
committerFraser Cormack <fraser@codeplay.com>
Mon, 15 Feb 2021 10:32:56 +0000 (10:32 +0000)
commit4bd5bd40094c7b8b691cf394d813efc48d82acfd
tree468dac5f09fb3fbd844c3ed31e0e846f6d0e40a1
parente54811ff7e0bc99f337bcbb569311bb166187322
[RISCV] Convert VSLIDE(UP|DOWN) nodes to "VL" versions (NFC)

This patch prepares the RISCV VSLIDEUP and VSLIDEDOWN custom nodes to
ones carrying additional mask and vector-length operands. This is
primarily so they can be used by both systems.

This also takes the opportunity to create some helper functions to deal
with the common task of getting the default (unmasked) VL operands.

Reviewed By: craig.topper, arcbbb

Differential Revision: https://reviews.llvm.org/D96505
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/lib/Target/RISCV/RISCVISelLowering.h
llvm/lib/Target/RISCV/RISCVInstrInfoVSDPatterns.td
llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td