implement support for llvm codegen of vectors. That was much easier than

I expected :)

llvm-svn: 39720
This commit is contained in:
Chris Lattner 2007-07-10 00:23:39 +00:00
parent 97b9e91eb7
commit 6eea886b9e
1 changed files with 5 additions and 0 deletions

View File

@ -95,6 +95,11 @@ const llvm::Type *CodeGenTypes::ConvertType(QualType T) {
assert(0 && "FIXME: VLAs not implemented yet!");
}
}
case Type::Vector: {
const VectorType &VT = cast<VectorType>(Ty);
return llvm::VectorType::get(ConvertType(VT.getElementType()),
VT.getNumElements());
}
case Type::FunctionNoProto:
case Type::FunctionProto: {
const FunctionType &FP = cast<FunctionType>(Ty);