[llvm] [RISCV][GISEL] Add support for lowerFormalArguments that contain scalable vector types (PR #70882)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 2 18:41:39 PDT 2023


================
@@ -297,6 +297,34 @@ struct RISCVCallReturnHandler : public RISCVIncomingValueHandler {
 RISCVCallLowering::RISCVCallLowering(const RISCVTargetLowering &TLI)
     : CallLowering(&TLI) {}
 
+/// Return true if scalable vector with ScalarTy is legal for lowering.
+static bool isLegalElementTypeForRVV(EVT ScalarTy,
----------------
topperc wrote:

Can we implement this on Type* without going through EVT?

https://github.com/llvm/llvm-project/pull/70882


More information about the llvm-commits mailing list