[PATCH] D29979: [coroutines] Add co_return statement emission

Gor Nishanov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 14 21:31:41 PST 2017


GorNishanov created this revision.
Herald added a subscriber: mehdi_amini.

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.


https://reviews.llvm.org/D29979

Files:
  lib/CodeGen/CGCoroutine.cpp
  lib/CodeGen/CGStmt.cpp
  lib/CodeGen/CodeGenFunction.h
  test/CodeGenCoroutines/coro-alloc.cpp
  test/CodeGenCoroutines/coro-return.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29979.88485.patch
Type: text/x-patch
Size: 6731 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170215/02bc26c8/attachment.bin>


More information about the llvm-commits mailing list