diff options
author | Derek Schuff <dschuff@chromium.org> | 2017-07-10 09:47:21 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-10 09:47:21 -0700 |
commit | bcb29e59c92347eebcd138034a4f4c06d042670a (patch) | |
tree | ce51ac4020bacd34c748693d85d70616bf340714 /src/wasm-s-parser.h | |
parent | 4995132cfaf575e430a7d0e95257b677286171c3 (diff) | |
download | binaryen-bcb29e59c92347eebcd138034a4f4c06d042670a.tar.gz binaryen-bcb29e59c92347eebcd138034a4f4c06d042670a.tar.bz2 binaryen-bcb29e59c92347eebcd138034a4f4c06d042670a.zip |
Add IR, parsing, printing, and binary for atomic cmpxchg (#1083)
Diffstat (limited to 'src/wasm-s-parser.h')
-rw-r--r-- | src/wasm-s-parser.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h index 161256c2f..d621128de 100644 --- a/src/wasm-s-parser.h +++ b/src/wasm-s-parser.h @@ -177,7 +177,9 @@ private: Expression* makeConst(Element& s, WasmType type); Expression* makeLoad(Element& s, WasmType type, bool isAtomic); Expression* makeStore(Element& s, WasmType type, bool isAtomic); - Expression* makeAtomicRMW(Element& s, WasmType type); + Expression* makeAtomicRMWOrCmpxchg(Element& s, WasmType type); + Expression* makeAtomicRMW(Element& s, WasmType type, uint8_t bytes, const char* extra); + Expression* makeAtomicCmpxchg(Element& s, WasmType type, uint8_t bytes, const char* extra); Expression* makeIf(Element& s); Expression* makeMaybeBlock(Element& s, size_t i, WasmType type); Expression* makeLoop(Element& s); |