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:
@@ -308,6 +308,7 @@ namespace decls_block {
|
||||
OPTIONAL_TYPE,
|
||||
SIL_FUNCTION_TYPE,
|
||||
VEC_TYPE,
|
||||
MATRIX_TYPE,
|
||||
|
||||
TYPE_ALIAS_DECL = 100,
|
||||
GENERIC_TYPE_PARAM_DECL,
|
||||
@@ -516,6 +517,14 @@ namespace decls_block {
|
||||
BCVBR<6> // length
|
||||
>;
|
||||
|
||||
using MatrixTypeLayout = BCRecordLayout<
|
||||
MATRIX_TYPE,
|
||||
TypeIDField, // element type
|
||||
BCVBR<6>, // rows
|
||||
BCVBR<6>, // columns
|
||||
BCFixed<1> // columns specified
|
||||
>;
|
||||
|
||||
using ArrayTypeLayout = BCRecordLayout<
|
||||
ARRAY_TYPE,
|
||||
TypeIDField, // element type
|
||||
|
||||
Reference in New Issue
Block a user