Parsing and basic structure of try_apply. Not yet properly

threaded into IRGen; tests to follow when that's done.

I made a preliminary effort to make the inliner do the
right thing with try_apply, but otherwise tried to avoid
touching the optimizer any more than was required by the
removal of ApplyInstBase.

Swift SVN r26747
This commit is contained in:
John McCall
2015-03-31 02:41:03 +00:00
parent 1c8fcec3b9
commit 6d8fff9c06
21 changed files with 723 additions and 222 deletions

View File

@@ -53,6 +53,7 @@ static bool isTransitiveEscapeInst(SILInstruction *Inst) {
case ValueKind::AllocValueBufferInst:
case ValueKind::BuiltinInst:
case ValueKind::ApplyInst:
case ValueKind::TryApplyInst:
case ValueKind::WitnessMethodInst:
case ValueKind::CopyAddrInst:
case ValueKind::RetainValueInst: