[PATCH] D30809: [coroutines] Add codegen for await and yield expressions

Gor Nishanov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 14 16:23:56 PDT 2017


GorNishanov updated this revision to Diff 91790.
GorNishanov added a comment.

- reworked EmitAwait/Yield to has the signature similar to EmitAnyExpr
- await expresions now support _Complex types.
- s/Suffix/Prefix in buildCoroutineSuffix, since it was actually building a prefix
- buildCoroutineSuffix uses literal array for names, as opposed to getting names from the switch stmt.
- added tests to test for Aggr, Scalar and Complex
- added tests for codegen for operator co_await
- sprinkled more comments

Thank you very much for your feedback, John and David!


https://reviews.llvm.org/D30809

Files:
  lib/CodeGen/CGCoroutine.cpp
  lib/CodeGen/CGExprAgg.cpp
  lib/CodeGen/CGExprComplex.cpp
  lib/CodeGen/CGExprScalar.cpp
  lib/CodeGen/CodeGenFunction.h
  test/CodeGenCoroutines/coro-await.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30809.91790.patch
Type: text/x-patch
Size: 20487 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170314/530a942f/attachment-0001.bin>


More information about the cfe-commits mailing list