[CoroutineAccessors] Add new SILFnTy CoroKind.

For `modify` and `read` coroutines, produce SILFunctionType's whose
coroutineKind is ::YieldOnce2.
This commit is contained in:
Nate Chandler
2024-09-27 14:04:35 -07:00
parent 9e45aa5975
commit df1c4f6b25
30 changed files with 211 additions and 29 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 = 894; // ThunkInst
const uint16_t SWIFTMODULE_VERSION_MINOR = 895; // @yield_once_2
/// A standard hash seed used for all string hashes in a serialized module.
///
@@ -311,7 +311,8 @@ using SILFunctionTypeRepresentationField = BCFixed<5>;
enum class SILCoroutineKind : uint8_t {
None = 0,
YieldOnce = 1,
YieldMany = 2,
YieldOnce2 = 2,
YieldMany = 3,
};
using SILCoroutineKindField = BCFixed<2>;