[PATCH] D45114: [coroutines] Add support for llvm.coro.noop intrinsics

Gor Nishanov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 30 16:04:02 PDT 2018


GorNishanov created this revision.
GorNishanov added reviewers: EricWF, modocache, rnk, lewissbaker.

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.


https://reviews.llvm.org/D45114

Files:
  docs/Coroutines.rst
  include/llvm/IR/Intrinsics.td
  lib/Transforms/Coroutines/CoroEarly.cpp
  lib/Transforms/Coroutines/Coroutines.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45114.140505.patch
Type: text/x-patch
Size: 5908 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180330/854a5392/attachment.bin>


More information about the llvm-commits mailing list