[PATCH] D150803: [WebAssembly] Add a new `wasm_async` clang attribute for marking async functions.
Erich Keane via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 1 06:14:47 PDT 2023
erichkeane added a comment.
Couple of CFE comments, otherwise LGTM.
================
Comment at: clang/docs/ReleaseNotes.rst:559
^^^^^^^^^^^^^^^^^^^
+- Added ``attribute((wasm_async))`` to indicate that a function should be used with
+ JavaScript Promise Integration (JSPI).
----------------
We require underscores to spell it in code, so I figure we should do it here too.
================
Comment at: clang/lib/Sema/SemaDeclAttr.cpp:7638
+ D->addAttr(::new (S.Context) WebAssemblyAsyncAttr(S.Context, AL));
+ D->addAttr(UsedAttr::CreateImplicit(S.Context));
+}
----------------
We should probably document that this forces the function to be emitted as well.
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