IRGen and basic optimizer support for coroutines.

This commit is contained in:
John McCall
2018-01-07 01:13:42 -05:00
parent b80808bbc1
commit 3c54c0edfc
39 changed files with 1886 additions and 153 deletions

View File

@@ -18,6 +18,10 @@
using namespace swift;
bool SILInliner::canInlineFunction(FullApplySite AI) {
// For now, we cannot inline begin_apply at all.
if (isa<BeginApplyInst>(AI))
return false;
return AI.getFunction() != &Original;
}