This is an archive of the discontinued LLVM Phabricator instance.

[coroutines] Add co_return statement emission
ClosedPublic

Authored by GorNishanov on Feb 14 2017, 9:31 PM.
Tokens
"Mountain of Wealth" token, awarded by GorNishanov.

Details

Summary

Added co_return statement emission.

Tweaked coro-alloc.cpp test to use co_return to trigger coroutine processing instead of co_await, since this change starts emitting the body of the coroutine and await expression handling has not been upstreamed yet.

Diff Detail

Event Timeline

GorNishanov created this revision.Feb 14 2017, 9:31 PM
EricWF edited reviewers, added: majnemer; removed: EricWF.Feb 16 2017, 1:45 PM
EricWF edited edge metadata.
EricWF added a subscriber: majnemer.

I'm not at all familiar with Clang's codegen mechanics so I won't be able to review this. Maybe @majnemer would?

rsmith accepted this revision.Feb 27 2017, 12:35 PM
This revision is now accepted and ready to land.Feb 27 2017, 12:35 PM
This revision was automatically updated to reflect the committed changes.