[llvm] [RISCV][GlobalISel] Legalize Scalable Vector Loads and Stores (PR #84965)

Michael Maitland via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 12 10:14:47 PDT 2024


================
@@ -463,9 +493,14 @@ RISCVLegalizerInfo::RISCVLegalizerInfo(const RISCVSubtarget &ST)
 }
 
 static Type *getTypeForLLT(LLT Ty, LLVMContext &C) {
----------------
michaelmaitland wrote:

https://llvm.org/doxygen/classllvm_1_1VectorType.html
```
if (Ty.isVector())
  return VectorType::get(IntegerType::get(C, Ty.getScalarSizeInBits(), Ty.getElementCount())
```

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


More information about the llvm-commits mailing list