[PATCH] D150803: [WebAssembly] Add a new `wasm_async` clang attribute for marking async functions.

Dan Gohman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 1 15:17:11 PDT 2023


sunfish added a comment.

In D150803#4389040 <https://reviews.llvm.org/D150803#4389040>, @dschuff wrote:

> Hm, this is interesting because in the long term we plan to have stack switching in wasm, which could allow for similar async behavior that JSPI has, and could be useful in non-web systems. But that's a ways off. The file format we are generating with this CL will be used in emscripten sooner (and we may want to try to stabilize it some point, possibly before pure wasm stack switching is usable in non-web systems).
> So overall I kind of feel like I could go either way on this. Curious if @sunfish has had any thoughts about async outside of emscripten.

When we do have stack switching, would you anticipate still using this `wasm_async` attribute, or would we switch to something else at that point?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D150803



More information about the cfe-commits mailing list