forked from OSchip/llvm-project
implement support for llvm codegen of vectors. That was much easier than
I expected :) llvm-svn: 39720
This commit is contained in:
parent
97b9e91eb7
commit
6eea886b9e
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue