case Type::VectorTyID: {
const VectorType *VTy = cast<VectorType>(Ty);
- unsigned NumElements = VTy->getNumElements();
return printType(Out, VTy->getElementType(), false,
- NameSoFar + "[" + utostr(NumElements) + "]");
+ NameSoFar + " __attribute__((vector_size(" +
+ utostr(TD->getABITypeSize(VTy)) + " ))) ");
}
case Type::OpaqueTyID: {
break;
case Type::VectorTyID:
+ // Use C99 compound expression literal initializer syntax.
+ Out << "(";
+ printType(Out, CPV->getType());
+ Out << ")";
if (ConstantVector *CV = cast<ConstantVector>(CPV)) {
printConstantVector(CV);
} else {