mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user