summaryrefslogtreecommitdiff
path: root/src/binary-reader-ir.cc
diff options
context:
space:
mode:
authorShravan Narayan <shravanrn@gmail.com>2023-05-10 17:56:04 -0400
committerShravan Narayan <shravanrn@gmail.com>2023-05-17 23:00:10 -0400
commit795f415f70f75d4cd841078aaa7a0dc14f9ebdd9 (patch)
tree6f1dc69c21e388e258a2c459bd5c299b4869d450 /src/binary-reader-ir.cc
parent963f973469b45969ce198e0c86d3af316790a780 (diff)
downloadwabt-795f415f70f75d4cd841078aaa7a0dc14f9ebdd9.tar.gz
wabt-795f415f70f75d4cd841078aaa7a0dc14f9ebdd9.tar.bz2
wabt-795f415f70f75d4cd841078aaa7a0dc14f9ebdd9.zip
wasm2c: partial support for atomic memory ops
Diffstat (limited to 'src/binary-reader-ir.cc')
-rw-r--r--src/binary-reader-ir.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/binary-reader-ir.cc b/src/binary-reader-ir.cc
index 5736e302..2eb2342b 100644
--- a/src/binary-reader-ir.cc
+++ b/src/binary-reader-ir.cc
@@ -788,6 +788,7 @@ Result BinaryReaderIR::OnOpcode(Opcode opcode) {
return AppendExpr(std::move(metadata));
}
module_->features_used.simd |= (opcode.GetResultType() == Type::V128);
+ module_->features_used.threads |= (opcode.GetPrefix() == 0xfe);
return Result::Ok;
}