================
@@ -12153,8 +12166,15 @@ static QualType DecodeTypeFromStr(const char *&Str, 
const ASTContext &Context,
                                              RequiresICE, false);
     assert(!RequiresICE && "Can't require vector ICE");
 
-    // TODO: No way to make AltiVec vectors in builtins yet.
-    Type = Context.getVectorType(ElementType, NumElements, 
VectorKind::Generic);
+    if (ElementType == Context.MFloat8Ty) {
+      assert((NumElements == 8 || NumElements == 16) &&
+             "Invalid number of elements");
+      Type = NumElements == 8 ? Context.MFloat8x8Ty : Context.MFloat8x16Ty;
----------------
SpencerAbson wrote:

Do the fixed-length `Mfloat8` vectors need special treatment here? AFAIK 
`getVectorType` should work just fine.

https://github.com/llvm/llvm-project/pull/118969
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to