Add a new Thunk-flag in SILFunction which specifies that a function is a thunk.

This will have an effect on inlining into thunks.
Currently this flag is set for witness thunks and thunks from function signature optimization.
No change in code generation, yet.



Swift SVN r24998
This commit is contained in:
Erik Eckstein
2015-02-05 16:45:05 +00:00
parent c896106de8
commit 9dfd349faf
36 changed files with 226 additions and 174 deletions

View File

@@ -358,7 +358,8 @@ public:
CanSILFunctionType type,
IsBare_t isBareSILFunction,
IsTransparent_t isTransparent,
IsFragile_t isFragile);
IsFragile_t isFragile,
IsThunk_t isThunk);
/// \brief Return the declaration of a function, or create it if it doesn't
/// exist..
@@ -369,6 +370,7 @@ public:
IsBare_t isBareSILFunction,
IsTransparent_t isTransparent,
IsFragile_t isFragile,
IsThunk_t isThunk = IsNotThunk,
SILFunction::ClassVisibility_t CV =
SILFunction::NotRelevant);