mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CoroutineAccessors] Old ABI may be used via flag.
Add a setting to IRGenOptions and key off of it to emit yield_once_2 coroutines using either (1) the same code-path as yield_once coroutines or (2) a new, not-yet implemented code-path. Add flags to set the value in both directions. During bringup, by default, use the existing caller-allocated ABI.
This commit is contained in:
@@ -3473,6 +3473,8 @@ static bool ParseIRGenArgs(IRGenOptions &Opts, ArgList &Args,
|
||||
Args.hasFlag(OPT_enable_fragile_resilient_protocol_witnesses,
|
||||
OPT_disable_fragile_resilient_protocol_witnesses,
|
||||
Opts.UseFragileResilientProtocolWitnesses);
|
||||
Opts.EmitYieldOnce2AsYieldOnce =
|
||||
!LangOpts.hasFeature(Feature::CoroutineAccessorsAllocateInCallee);
|
||||
Opts.EnableHotColdSplit =
|
||||
Args.hasFlag(OPT_enable_split_cold_code,
|
||||
OPT_disable_split_cold_code,
|
||||
|
||||
Reference in New Issue
Block a user