[llvm] [ValueTypes] Add v1 to v12 vector type support for i1, i8, i16, f16, … (PR #96481)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 24 05:54:49 PDT 2024
================
@@ -237,8 +237,22 @@ Type *EVT::getTypeForEVT(LLVMContext &Context) const {
return FixedVectorType::get(Type::getInt1Ty(Context), 3);
case MVT::v4i1:
return FixedVectorType::get(Type::getInt1Ty(Context), 4);
+ case MVT::v5i1:
+ return FixedVectorType::get(Type::getInt1Ty(Context), 5);
+ case MVT::v6i1:
+ return FixedVectorType::get(Type::getInt1Ty(Context), 6);
+ case MVT::v7i1:
+ return FixedVectorType::get(Type::getInt1Ty(Context), 7);
----------------
RKSimon wrote:
Can we not update this method to use GenVT.inc for most cases?
https://github.com/llvm/llvm-project/pull/96481
More information about the llvm-commits
mailing list