mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Optimizer: add FunctionPassContext.mangle(withChangedRepresentation original: Function)
This commit is contained in:
@@ -202,6 +202,7 @@ struct BridgedPassContext {
|
||||
BridgedFunction bridgedOriginalFunction) const;
|
||||
BridgedOwnedString mangleWithExplodedPackArgs(BridgedArrayRef bridgedPackArgs,
|
||||
BridgedFunction applySiteCallee) const;
|
||||
BridgedOwnedString mangleWithChangedRepresentation(BridgedFunction applySiteCallee) const;
|
||||
|
||||
void inlineFunction(BridgedInstruction apply, bool mandatoryInline) const;
|
||||
BRIDGED_INLINE bool eliminateDeadAllocations(BridgedFunction f) const;
|
||||
|
||||
@@ -104,6 +104,8 @@ class FunctionSignatureSpecializationMangler : public SpecializationMangler {
|
||||
|
||||
ReturnValueModifierIntBase ReturnValue;
|
||||
|
||||
bool changedRepresentation = false;
|
||||
|
||||
public:
|
||||
FunctionSignatureSpecializationMangler(ASTContext &Ctx, SpecializationPass Pass,
|
||||
swift::SerializedKind_t Serialized,
|
||||
@@ -123,6 +125,7 @@ public:
|
||||
void setArgumentBoxToStack(unsigned OrigArgIdx);
|
||||
void setArgumentInOutToOut(unsigned OrigArgIdx);
|
||||
void setReturnValueOwnedToUnowned();
|
||||
void setChangedRepresentation() { changedRepresentation = true; }
|
||||
|
||||
// For effects
|
||||
void setRemovedEffect(EffectKind effect);
|
||||
|
||||
Reference in New Issue
Block a user