diff options
author | Heejin Ahn <aheejin@gmail.com> | 2019-08-27 16:40:59 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-27 16:40:59 -0700 |
commit | cb0b31a2d185f18662814c9f3c9158b2eea74760 (patch) | |
tree | 4fe23ff2abb08af7a804f6e6755b07454f79f45d /scripts/gen-s-parser.py | |
parent | f070e8c10a15a02735fbd9b88c4c569a8c786933 (diff) | |
download | binaryen-cb0b31a2d185f18662814c9f3c9158b2eea74760.tar.gz binaryen-cb0b31a2d185f18662814c9f3c9158b2eea74760.tar.bz2 binaryen-cb0b31a2d185f18662814c9f3c9158b2eea74760.zip |
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.
Diffstat (limited to 'scripts/gen-s-parser.py')
-rwxr-xr-x | scripts/gen-s-parser.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/gen-s-parser.py b/scripts/gen-s-parser.py index d6653e112..29f822f50 100755 --- a/scripts/gen-s-parser.py +++ b/scripts/gen-s-parser.py @@ -211,6 +211,7 @@ instructions = [ ("atomic.notify", "makeAtomicNotify(s)"), ("i32.atomic.wait", "makeAtomicWait(s, i32)"), ("i64.atomic.wait", "makeAtomicWait(s, i64)"), + ("atomic.fence", "makeAtomicFence(s)"), ("i32.atomic.load8_u", "makeLoad(s, i32, /*isAtomic=*/true)"), ("i32.atomic.load16_u", "makeLoad(s, i32, /*isAtomic=*/true)"), ("i32.atomic.load", "makeLoad(s, i32, /*isAtomic=*/true)"), |