summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/BinaryFormat/Wasm.h
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2018-11-14 18:36:24 +0000
committerSam Clegg <sbc@chromium.org>2018-11-14 18:36:24 +0000
commite4afbc68046c436f1eb2ec97dd838d8e470c3d7f (patch)
treeccbf5565f28de12ca5c590758ab4ce028b95a126 /llvm/include/llvm/BinaryFormat/Wasm.h
parent6c94264b1f3342376ec3d46e14634d39cf158a49 (diff)
downloadbcm5719-llvm-e4afbc68046c436f1eb2ec97dd838d8e470c3d7f.tar.gz
bcm5719-llvm-e4afbc68046c436f1eb2ec97dd838d8e470c3d7f.zip
[WebAssembly] Add support for dylink section in object format
See https://github.com/WebAssembly/tool-conventions/blob/master/DynamicLinking.md. Differential Revision: https://reviews.llvm.org/D54490 llvm-svn: 346880
Diffstat (limited to 'llvm/include/llvm/BinaryFormat/Wasm.h')
-rw-r--r--llvm/include/llvm/BinaryFormat/Wasm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/include/llvm/BinaryFormat/Wasm.h b/llvm/include/llvm/BinaryFormat/Wasm.h
index fbca8df7382..c22d3663e98 100644
--- a/llvm/include/llvm/BinaryFormat/Wasm.h
+++ b/llvm/include/llvm/BinaryFormat/Wasm.h
@@ -35,6 +35,13 @@ struct WasmObjectHeader {
uint32_t Version;
};
+struct WasmDylinkInfo {
+ uint32_t MemorySize; // Memory size in bytes
+ uint32_t MemoryAlignment; // P2 alignment of memory
+ uint32_t TableSize; // Table size in elements
+ uint32_t TableAlignment; // P2 alignment of table
+};
+
struct WasmExport {
StringRef Name;
uint8_t Kind;
OpenPOWER on IntegriCloud