mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Axle: Implement Matrix<T, N> and Matrix<T, N, M> syntactic sugar.
This completes the majority of <rdar://problem/15100137>. Swift SVN r9098
This commit is contained in:
@@ -2347,6 +2347,21 @@ Type ModuleFile::getType(TypeID TID) {
|
||||
break;
|
||||
}
|
||||
|
||||
case decls_block::MATRIX_TYPE: {
|
||||
TypeID baseID;
|
||||
uint64_t rows;
|
||||
uint64_t columns;
|
||||
uint8_t columnsSpecified;
|
||||
decls_block::MatrixTypeLayout::readRecord(scratch, baseID, rows, columns,
|
||||
columnsSpecified);
|
||||
|
||||
if (columnsSpecified)
|
||||
typeOrOffset = MatrixType::get(getType(baseID), rows, columns, ctx);
|
||||
else
|
||||
typeOrOffset = MatrixType::get(getType(baseID), rows, Nothing, ctx);
|
||||
break;
|
||||
}
|
||||
|
||||
case decls_block::ARRAY_TYPE: {
|
||||
TypeID baseID;
|
||||
uint64_t size;
|
||||
|
||||
Reference in New Issue
Block a user