Remove the transparent bit from apply instructions.

We no longer need or use it since we can always refer to the same bit on
the applied function when deciding whether to inline during mandatory
inlining.

Resolves rdar://problem/19478366.

Swift SVN r26534
This commit is contained in:
Mark Lacey
2015-03-25 08:36:34 +00:00
parent 52a332b2bd
commit 1f23ff27bb
73 changed files with 199 additions and 241 deletions

View File

@@ -213,20 +213,19 @@ public:
SILType SubstFnTy,
SILType Result,
ArrayRef<Substitution> Subs,
ArrayRef<SILValue> Args,
bool Transparent = false) {
ArrayRef<SILValue> Args) {
return insert(ApplyInst::create(Loc, Fn, SubstFnTy, Result,
Subs, Args, Transparent, F));
Subs, Args, F));
}
ApplyInst *createApply(SILLocation Loc, SILValue Fn, ArrayRef<SILValue> Args,
bool Transparent = false) {
ApplyInst *createApply(SILLocation Loc, SILValue Fn,
ArrayRef<SILValue> Args) {
auto FnTy = Fn.getType();
return createApply(Loc, Fn, FnTy,
FnTy.castTo<SILFunctionType>()
->getResult()
.getSILType(),
ArrayRef<Substitution>(), Args, Transparent);
ArrayRef<Substitution>(), Args);
}