[PATCH] D76547: [WebAssembly] Add wasm-exported function attribute
Sam Clegg via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 21 11:12:40 PDT 2020
sbc100 created this revision.
Herald added subscribers: cfe-commits, sunfish, aheejin, hiraditya, jgravelle-google, dschuff.
Herald added a project: clang.
sbc100 added reviewers: sunfish, kripken.
This matches the existing export-name attribute but exports that symbol
but its llvm symbol name. This corresponds directly to the existing
WASM_SYMBOL_EXPORTED symbol flag.
This allows the existing emscripgten macro `EMSCERIPTEN_KEEPALIVE` to be
implemented in terms of this attribute rather then the current
workaround which uses the `used` attribute.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D76547
Files:
clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/AttrDocs.td
clang/lib/CodeGen/TargetInfo.cpp
clang/lib/Sema/SemaDeclAttr.cpp
clang/test/CodeGen/wasm-export.c
llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp
llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyTargetStreamer.cpp
llvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyTargetStreamer.h
llvm/lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
llvm/test/CodeGen/WebAssembly/export.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76547.251852.patch
Type: text/x-patch
Size: 8911 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200321/424e6f7d/attachment-0001.bin>
More information about the cfe-commits
mailing list