summaryrefslogtreecommitdiff
path: root/src/ir-util.cc
diff options
context:
space:
mode:
authorAndy Wingo <wingo@igalia.com>2020-04-20 21:10:19 +0200
committerGitHub <noreply@github.com>2020-04-20 12:10:19 -0700
commitd041025854ba2b00b3df9f308914c8aba05dcda9 (patch)
tree2066b1cef60effa9c2a0ef7cf13cf65a34f23b1b /src/ir-util.cc
parent952c3b8006911a8659c1b922c3bb4adffc671d89 (diff)
downloadwabt-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/ir-util.cc')
-rw-r--r--src/ir-util.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ir-util.cc b/src/ir-util.cc
index d1dc239f..7e2bc583 100644
--- a/src/ir-util.cc
+++ b/src/ir-util.cc
@@ -163,6 +163,7 @@ ModuleContext::Arities ModuleContext::GetExprArity(const Expr& expr) const {
case ExprType::DataDrop:
case ExprType::ElemDrop:
+ case ExprType::AtomicFence:
return { 0, 0 };
case ExprType::MemoryInit: