mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Performance annotations: add attributes @_noLocks and @_noAllocation
This commit is contained in:
@@ -526,14 +526,16 @@ SILDeserializer::readSILFunctionChecked(DeclID FID, SILFunction *existingFn,
|
||||
GenericSignatureID genericSigID;
|
||||
unsigned rawLinkage, isTransparent, isSerialized, isThunk,
|
||||
isWithoutactuallyEscapingThunk, specialPurpose, inlineStrategy,
|
||||
optimizationMode, subclassScope, hasCReferences, effect, numSpecAttrs,
|
||||
optimizationMode, perfConstr,
|
||||
subclassScope, hasCReferences, effect, numSpecAttrs,
|
||||
hasQualifiedOwnership, isWeakImported, LIST_VER_TUPLE_PIECES(available),
|
||||
isDynamic, isExactSelfClass;
|
||||
ArrayRef<uint64_t> SemanticsIDs;
|
||||
SILFunctionLayout::readRecord(
|
||||
scratch, rawLinkage, isTransparent, isSerialized, isThunk,
|
||||
isWithoutactuallyEscapingThunk, specialPurpose, inlineStrategy,
|
||||
optimizationMode, subclassScope, hasCReferences, effect, numSpecAttrs,
|
||||
optimizationMode, perfConstr,
|
||||
subclassScope, hasCReferences, effect, numSpecAttrs,
|
||||
hasQualifiedOwnership, isWeakImported, LIST_VER_TUPLE_PIECES(available),
|
||||
isDynamic, isExactSelfClass, funcTyID, replacedFunctionID, genericSigID,
|
||||
clangNodeOwnerID, SemanticsIDs);
|
||||
@@ -656,6 +658,7 @@ SILDeserializer::readSILFunctionChecked(DeclID FID, SILFunction *existingFn,
|
||||
fn->setSpecialPurpose(SILFunction::Purpose(specialPurpose));
|
||||
fn->setEffectsKind(EffectsKind(effect));
|
||||
fn->setOptimizationMode(OptimizationMode(optimizationMode));
|
||||
fn->setPerfConstraints((PerformanceConstraints)perfConstr);
|
||||
fn->setAlwaysWeakImported(isWeakImported);
|
||||
fn->setClassSubclassScope(SubclassScope(subclassScope));
|
||||
fn->setHasCReferences(bool(hasCReferences));
|
||||
@@ -2921,14 +2924,16 @@ bool SILDeserializer::hasSILFunction(StringRef Name,
|
||||
GenericSignatureID genericSigID;
|
||||
unsigned rawLinkage, isTransparent, isSerialized, isThunk,
|
||||
isWithoutactuallyEscapingThunk, isGlobal, inlineStrategy,
|
||||
optimizationMode, subclassScope, hasCReferences, effect, numSpecAttrs,
|
||||
optimizationMode, perfConstr,
|
||||
subclassScope, hasCReferences, effect, numSpecAttrs,
|
||||
hasQualifiedOwnership, isWeakImported, LIST_VER_TUPLE_PIECES(available),
|
||||
isDynamic, isExactSelfClass;
|
||||
ArrayRef<uint64_t> SemanticsIDs;
|
||||
SILFunctionLayout::readRecord(
|
||||
scratch, rawLinkage, isTransparent, isSerialized, isThunk,
|
||||
isWithoutactuallyEscapingThunk, isGlobal, inlineStrategy,
|
||||
optimizationMode, subclassScope, hasCReferences, effect, numSpecAttrs,
|
||||
optimizationMode, perfConstr,
|
||||
subclassScope, hasCReferences, effect, numSpecAttrs,
|
||||
hasQualifiedOwnership, isWeakImported, LIST_VER_TUPLE_PIECES(available),
|
||||
isDynamic, isExactSelfClass, funcTyID, replacedFunctionID, genericSigID,
|
||||
clangOwnerID, SemanticsIDs);
|
||||
|
||||
Reference in New Issue
Block a user