[func-sig-opts] Add a new mangling for the guaranteed->owned transformation.

I followed the example of the owned->guaranteed transformation.

rdar://38196046
This commit is contained in:
Michael Gottesman
2018-04-26 16:27:49 -07:00
parent ff6febca17
commit afc98b34e9
10 changed files with 60 additions and 0 deletions

View File

@@ -127,6 +127,7 @@ class FunctionSignatureSpecializationMangler : public SpecializationMangler {
Dead=32,
OwnedToGuaranteed=64,
SROA=128,
GuaranteedToOwned=256,
First_OptionSetEntry=32, LastOptionSetEntry=32768,
};
@@ -149,6 +150,7 @@ public:
ThinToThickFunctionInst *TTTFI);
void setArgumentDead(unsigned OrigArgIdx);
void setArgumentOwnedToGuaranteed(unsigned OrigArgIdx);
void setArgumentGuaranteedToOwned(unsigned OrigArgIdx);
void setArgumentSROA(unsigned OrigArgIdx);
void setArgumentBoxToValue(unsigned OrigArgIdx);
void setArgumentBoxToStack(unsigned OrigArgIdx);