Merge remote-tracking branch 'origin/main' into rebranch

Conflicts:
	lib/IRGen/IRGenDebugInfo.cpp
This commit is contained in:
Adrian Prantl
2021-01-29 16:17:10 -08:00
72 changed files with 1396 additions and 1494 deletions

View File

@@ -5434,6 +5434,7 @@ public:
uint8_t rawRepresentation;
uint8_t rawDiffKind;
bool pseudogeneric = false;
bool concurrent;
bool noescape;
bool hasErrorResult;
unsigned numParams;
@@ -5446,6 +5447,7 @@ public:
ClangTypeID clangFunctionTypeID;
decls_block::SILFunctionTypeLayout::readRecord(scratch,
concurrent,
async,
rawCoroutineKind,
rawCalleeConvention,
@@ -5483,7 +5485,7 @@ public:
auto extInfo =
SILFunctionType::ExtInfoBuilder(*representation, pseudogeneric,
noescape, async, *diffKind,
noescape, concurrent, async, *diffKind,
clangFunctionType)
.build();

View File

@@ -56,7 +56,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 = 591; // @concurrent function type
const uint16_t SWIFTMODULE_VERSION_MINOR = 592; // @concurrent SIL function type
/// A standard hash seed used for all string hashes in a serialized module.
///
@@ -1071,6 +1071,7 @@ namespace decls_block {
using SILFunctionTypeLayout = BCRecordLayout<
SIL_FUNCTION_TYPE,
BCFixed<1>, // concurrent?
BCFixed<1>, // async?
SILCoroutineKindField, // coroutine kind
ParameterConventionField, // callee convention

View File

@@ -4393,7 +4393,7 @@ public:
unsigned abbrCode = S.DeclTypeAbbrCodes[SILFunctionTypeLayout::Code];
SILFunctionTypeLayout::emitRecord(
S.Out, S.ScratchRecord, abbrCode,
S.Out, S.ScratchRecord, abbrCode, fnTy->isConcurrent(),
fnTy->isAsync(), stableCoroutineKind, stableCalleeConvention,
stableRepresentation, fnTy->isPseudogeneric(), fnTy->isNoEscape(),
stableDiffKind, fnTy->hasErrorResult(), fnTy->getParameters().size(),