diff options
author | Andy Wingo <wingo@igalia.com> | 2020-04-20 21:10:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-20 12:10:19 -0700 |
commit | d041025854ba2b00b3df9f308914c8aba05dcda9 (patch) | |
tree | 2066b1cef60effa9c2a0ef7cf13cf65a34f23b1b /src/opcode.cc | |
parent | 952c3b8006911a8659c1b922c3bb4adffc671d89 (diff) | |
download | wabt-d041025854ba2b00b3df9f308914c8aba05dcda9.tar.gz wabt-d041025854ba2b00b3df9f308914c8aba05dcda9.tar.bz2 wabt-d041025854ba2b00b3df9f308914c8aba05dcda9.zip |
Add support for atomic.fence from the threads proposal (#1231)
See https://github.com/WebAssembly/threads/pull/141 for the binary
encoding. This patch does add a field to AtomicFenceExpr for the
consistency model, though without a type for the time being.
Diffstat (limited to 'src/opcode.cc')
-rw-r--r-- | src/opcode.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opcode.cc b/src/opcode.cc index 58e4a50b..c965f83a 100644 --- a/src/opcode.cc +++ b/src/opcode.cc @@ -94,6 +94,7 @@ bool Opcode::IsEnabled(const Features& features) const { case Opcode::AtomicNotify: case Opcode::I32AtomicWait: case Opcode::I64AtomicWait: + case Opcode::AtomicFence: case Opcode::I32AtomicLoad: case Opcode::I64AtomicLoad: case Opcode::I32AtomicLoad8U: |