1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00
llvm-mirror/lib/Transforms/Coroutines
Gor Nishanov 5e19e9e23d [Coroutines] Part14: Handle coroutines with no suspend points.
Summary:
If coroutine has no suspend points, remove heap allocation and turn a coroutine into a normal function.

Also, if a pattern is detected that coroutine resumes or destroys itself prior to coro.suspend call, turn the suspend point into a simple jump to resume or cleanup label. This pattern occurs when coroutines are used to propagate errors in functions that return expected<T>.

Reviewers: majnemer

Subscribers: mehdi_amini, llvm-commits

Differential Revision: https://reviews.llvm.org/D24408

llvm-svn: 282414
2016-09-26 15:49:28 +00:00
..
CMakeLists.txt [Coroutines] Part 7: Split coroutine into subfunctions 2016-08-16 18:04:14 +00:00
CoroCleanup.cpp [Coroutines] Part13: Handle single edge PHINodes across suspends 2016-09-09 05:39:00 +00:00
CoroEarly.cpp [Coroutines] Part13: Handle single edge PHINodes across suspends 2016-09-09 05:39:00 +00:00
CoroElide.cpp [Coroutines] Part 9: Add cleanup subfunction. 2016-08-29 14:34:12 +00:00
CoroFrame.cpp [Coroutines] Part13: Handle single edge PHINodes across suspends 2016-09-09 05:39:00 +00:00
CoroInstr.h [Coroutines] Part14: Handle coroutines with no suspend points. 2016-09-26 15:49:28 +00:00
CoroInternal.h [Coroutines] Part 10: Add coroutine promise support. 2016-08-31 00:35:41 +00:00
CoroSplit.cpp [Coroutines] Part14: Handle coroutines with no suspend points. 2016-09-26 15:49:28 +00:00
Coroutines.cpp [Coroutines] Part11: Add final suspend handling. 2016-09-05 04:44:30 +00:00
LLVMBuild.txt