[PATCH] D131376: [wasm-ld] Allow importing/exporting the output module's memory with arbitrary names
Liam Murphy via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 7 23:03:45 PDT 2022
Liamolucko created this revision.
Herald added subscribers: pmatos, asb, sunfish, sbc100, dschuff.
Herald added a project: All.
Liamolucko requested review of this revision.
Herald added subscribers: llvm-commits, aheejin.
Herald added a project: LLVM.
Adds an `--export-memory` option to `wasm-ld` which allows passing a name to give to the exported memory, and extends `--import-memory` to allow passing a `<module>,<name>` pair specifying where the memory should be imported from.
This is to support the newly-defined 'Canonical ABI' for modules (https://github.com/WebAssembly/component-model/pull/71), which requires that the memory be exported as `"cabi_memory"`.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D131376
Files:
lld/test/wasm/memory-naming.test
lld/wasm/Config.h
lld/wasm/Driver.cpp
lld/wasm/Options.td
lld/wasm/SyntheticSections.cpp
lld/wasm/SyntheticSections.h
lld/wasm/Writer.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131376.450704.patch
Type: text/x-patch
Size: 10334 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220808/9714ef9a/attachment-0001.bin>
More information about the llvm-commits
mailing list