[RISCV] Only expose one interface for getContainerForFixedLengthVector in the RISCVTa...
authorCraig Topper <craig.topper@sifive.com>
Fri, 23 Apr 2021 20:05:23 +0000 (13:05 -0700)
committerCraig Topper <craig.topper@sifive.com>
Fri, 23 Apr 2021 22:06:10 +0000 (15:06 -0700)
commitbaa107f018a94763d829daa534b4b1bf98219306
tree89963fda75d651ca90f0bd9e3e6e03e61c8a05b4
parent3fe5c3b0189f51868493bbbc6768ef3afbdfb492
[RISCV] Only expose one interface for getContainerForFixedLengthVector in the RISCVTargetLowering class

We can have RISCVISelDAGToDAG.cpp call the VT only version by
finding the RISCVTargetLowering object via the Subtarget.

Make the static versions just global static functions in
RISCVISelLowering that can be called by static functions in that
file.
llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/lib/Target/RISCV/RISCVISelLowering.h