[SIL] Add flag to SILFunction to indicate async.

Includes boilerplate to parse and print as well as to serialize and
deserialize.
This commit is contained in:
Nate Chandler
2020-08-03 17:28:34 -07:00
parent b647245fb8
commit 6b28c2fe89
12 changed files with 82 additions and 24 deletions

View File

@@ -107,7 +107,7 @@ SILFunction::SILFunction(SILModule &Module, SILLinkage Linkage, StringRef Name,
ExactSelfClass(isExactSelfClass),
Inlined(false), Zombie(false), HasOwnership(true),
WasDeserializedCanonical(false), IsWithoutActuallyEscapingThunk(false),
OptMode(unsigned(OptimizationMode::NotSet)),
IsAsync(false), OptMode(unsigned(OptimizationMode::NotSet)),
EffectsKindAttr(unsigned(E)) {
assert(!Transparent || !IsDynamicReplaceable);
validateSubclassScope(classSubclassScope, isThunk, nullptr);