[PATCH] D128163: [Coroutines] Don't add musttail call if WebAssembly are enabled

Adrian Vogelsgesang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 21 13:35:07 PDT 2022


avogelsgesang added a comment.

Also, note that cppcoro (afaict, the de-facto reference implementation for C++20 coroutine types) mentions in a comment <https://github.com/lewissbaker/cppcoro/blob/a87e97fe5b6091ca9f6de4637736b8e0d8b109cf/include/cppcoro/config.hpp>, that

> [...] the compiler supports returning a coroutine_handle from the await_suspend() method as a way of transferring execution to another coroutine with a **guaranteed tail-call**.

(emphasis mine)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128163/new/

https://reviews.llvm.org/D128163



More information about the llvm-commits mailing list