[PATCH] D45297: [WebAssembly] Allow for the creation of user-defined custom sections
Sam Clegg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 4 15:51:18 PDT 2018
sbc100 created this revision.
Herald added subscribers: llvm-commits, sunfish, aheejin, jgravelle-google, dschuff, jfb.
This patch adds a way for users to create their own custom sections to
be added to wasm files. At the LLVM IR layer, they are defined through
the "wasm.custom_sections" named metadata. The expected use case for
this is bindings generators such as wasm-bindgen.
Patch by Dan Gohman
Repository:
rL LLVM
https://reviews.llvm.org/D45297
Files:
lib/MC/WasmObjectWriter.cpp
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
test/CodeGen/WebAssembly/custom-sections.ll
test/MC/WebAssembly/custom-sections.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45297.141079.patch
Type: text/x-patch
Size: 6669 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180404/57d47cf3/attachment.bin>
More information about the llvm-commits
mailing list