[PATCH] D33507: [coroutines] Add support for coroutines with non-scalar parameters

Gor Nishanov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 24 10:50:30 PDT 2017


GorNishanov created this revision.

Simple types like int are handled by LLVM Coroutines just fine.
But for non-scalar parameters we need to create copies of those parameters in the coroutine frame and make all uses of those parameters to refer to parameter copies.


https://reviews.llvm.org/D33507

Files:
  lib/CodeGen/CGCoroutine.cpp
  lib/Sema/SemaCoroutine.cpp
  test/CodeGenCoroutines/coro-params.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33507.100132.patch
Type: text/x-patch
Size: 11212 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170524/f09c6f03/attachment-0001.bin>


More information about the cfe-commits mailing list