[cfe-commits] r39720 - /cfe/cfe/trunk/CodeGen/CodeGenTypes.cpp
clattner at cs.uiuc.edu
clattner at cs.uiuc.edu
Wed Jul 11 09:47:31 PDT 2007
Author: clattner
Date: Wed Jul 11 11:47:31 2007
New Revision: 39720
URL: http://llvm.org/viewvc/llvm-project?rev=39720&view=rev
Log:
implement support for llvm codegen of vectors. That was much easier than
I expected :)
Modified:
cfe/cfe/trunk/CodeGen/CodeGenTypes.cpp
Modified: cfe/cfe/trunk/CodeGen/CodeGenTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/CodeGen/CodeGenTypes.cpp?rev=39720&r1=39719&r2=39720&view=diff
==============================================================================
--- cfe/cfe/trunk/CodeGen/CodeGenTypes.cpp (original)
+++ cfe/cfe/trunk/CodeGen/CodeGenTypes.cpp Wed Jul 11 11:47:31 2007
@@ -95,6 +95,11 @@
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);
More information about the cfe-commits
mailing list