[clang] [CIR] Upstream initial support for fixed size VectorType (PR #136488)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 21 12:55:36 PDT 2025


================
@@ -399,6 +399,14 @@ mlir::Type CIRGenTypes::convertType(QualType type) {
     break;
   }
 
+  case Type::ExtVector:
+  case Type::Vector: {
+    const VectorType *vec = cast<VectorType>(ty);
+    const mlir::Type elemTy = convertTypeForMem(vec->getElementType());
----------------
andykaylor wrote:

I'm not sure `convertTypeForMem` is what we want here. Specifically, I don't think we want a vector of bools to end up as a vector of i8. I tried this with the incubator, but it seems vectors of bool are not yet implemented there.

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


More information about the cfe-commits mailing list