This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Allow for the creation of user-defined custom sections
ClosedPublic

Authored by sbc100 on Apr 4 2018, 3:51 PM.

Details

Summary

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

Diff Detail

Repository
rL LLVM

Event Timeline

sbc100 created this revision.Apr 4 2018, 3:51 PM
sbc100 updated this revision to Diff 141080.Apr 4 2018, 3:55 PM

clang-format

sbc100 updated this revision to Diff 141082.Apr 4 2018, 4:00 PM

cleanup

sunfish accepted this revision.Apr 4 2018, 4:16 PM

Looks good to me. Thanks!

This revision is now accepted and ready to land.Apr 4 2018, 4:16 PM
This revision was automatically updated to reflect the committed changes.