[PATCH] D43097: [WebAssembly] Allow for the creation of user-defined custom sections

Dan Gohman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 8 16:05:25 PST 2018


sunfish created this revision.
Herald added subscribers: aheejin, jgravelle-google, 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.


Repository:
  rL LLVM

https://reviews.llvm.org/D43097

Files:
  lib/MC/WasmObjectWriter.cpp
  lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
  test/CodeGen/WebAssembly/custom-sections.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43097.133524.patch
Type: text/x-patch
Size: 7819 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180209/3387ced6/attachment.bin>


More information about the llvm-commits mailing list