[PATCH] D31586: [coroutines] Replace all coro.frame builtins with an SSA value of coro.begin
Gor Nishanov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 2 13:17:09 PDT 2017
GorNishanov created this revision.
SemaCoroutine forms expressions referring to the coroutine frame of the enclosing coroutine using coro.frame builtin.
During codegen, we emit llvm.coro.begin intrinsic that returns the address of the coroutine frame.
When coro.frame is emitted, we replace it with SSA value of coro.begin.
https://reviews.llvm.org/D31586
Files:
lib/CodeGen/CGCoroutine.cpp
test/CodeGenCoroutines/coro-alloc.cpp
test/CodeGenCoroutines/coro-await.cpp
test/CodeGenCoroutines/coro-builtins.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31586.93812.patch
Type: text/x-patch
Size: 8794 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170402/33fbdbae/attachment-0001.bin>
More information about the cfe-commits
mailing list