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:
Doug Gregor
2013-10-09 22:24:21 +00:00
parent 23ca48185a
commit 7fee09b41e
18 changed files with 517 additions and 24 deletions

View File

@@ -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