Axle: Implement Vec<T, N> syntactic sugar for the VecTxN structs.

Implements the first part of <rdar://problem/15100137>.


Swift SVN r9092
This commit is contained in:
Doug Gregor
2013-10-09 21:12:19 +00:00
parent b880e60100
commit fba128e191
29 changed files with 586 additions and 48 deletions

View File

@@ -2337,6 +2337,16 @@ Type ModuleFile::getType(TypeID TID) {
break;
}
case decls_block::VEC_TYPE: {
TypeID baseID;
uint64_t length;
decls_block::VecTypeLayout::readRecord(scratch, baseID, length);
auto vecTy = VecType::get(getType(baseID), length, ctx);
typeOrOffset = vecTy;
break;
}
case decls_block::ARRAY_TYPE: {
TypeID baseID;
uint64_t size;