mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CoroutineAccessors] Add new SILFnTy CoroKind.
For `modify` and `read` coroutines, produce SILFunctionType's whose coroutineKind is ::YieldOnce2.
This commit is contained in:
@@ -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>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user