From cb0b31a2d185f18662814c9f3c9158b2eea74760 Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Tue, 27 Aug 2019 16:40:59 -0700 Subject: Add atomic.fence instruction (#2307) This adds `atomic.fence` instruction: https://github.com/WebAssembly/threads/blob/master/proposals/threads/Overview.md#fence-operator This also fix bugs in `atomic.wait` and `atomic.notify` instructions in binaryen.js and adds tests for them. --- src/wasm/wasm-s-parser.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/wasm/wasm-s-parser.cpp') diff --git a/src/wasm/wasm-s-parser.cpp b/src/wasm/wasm-s-parser.cpp index 39f6b0a9f..3a1e0db09 100644 --- a/src/wasm/wasm-s-parser.cpp +++ b/src/wasm/wasm-s-parser.cpp @@ -1421,6 +1421,10 @@ Expression* SExpressionWasmBuilder::makeAtomicNotify(Element& s) { return ret; } +Expression* SExpressionWasmBuilder::makeAtomicFence(Element& s) { + return allocator.alloc(); +} + static uint8_t parseLaneIndex(const Element* s, size_t lanes) { const char* str = s->c_str(); char* end; -- cgit v1.2.3