AST: Introduce PackElementType

This commit is contained in:
Slava Pestov
2023-05-22 13:47:24 -04:00
parent 8f9a4cbdae
commit b2bc2c72ec
29 changed files with 274 additions and 4 deletions

View File

@@ -58,7 +58,7 @@ const uint16_t SWIFTMODULE_VERSION_MAJOR = 0;
/// describe what change you made. The content of this comment isn't important;
/// it just ensures a conflict if two people change the module format.
/// Don't worry about adhering to the 80-column limit for this line.
const uint16_t SWIFTMODULE_VERSION_MINOR = 782; // reborrow, escaped SIL flags
const uint16_t SWIFTMODULE_VERSION_MINOR = 783; // pack element type
/// A standard hash seed used for all string hashes in a serialized module.
///
@@ -1365,6 +1365,12 @@ namespace decls_block {
TypeIDField // count type
);
TYPE_LAYOUT(PackElementTypeLayout,
PACK_ELEMENT_TYPE,
TypeIDField, // pack type
BCFixed<32> // level
);
TYPE_LAYOUT(PackTypeLayout,
PACK_TYPE,
BCArray<TypeIDField> // component types