A recent addition to Coroutines TS (https://wg21.link/p0913) adds a pre-defined coroutine noop_coroutine that does nothing.
To implement this feature, we implemented an llvm.coro.noop intrinsic that returns a coroutine handle to a coroutine that does nothing when resumed or destroyed.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Thanks!
docs/Coroutines.rst | ||
---|---|---|
907 ↗ | (On Diff #140534) | A nit-pick, but I would use two sentences here: "...private constant coroutine frame. The resume and destroy handlers for this frame are empty functions that do nothing." |