diff options
author | Shravan Narayan <shravanrn@gmail.com> | 2023-05-10 17:56:04 -0400 |
---|---|---|
committer | Shravan Narayan <shravanrn@gmail.com> | 2023-05-17 23:00:10 -0400 |
commit | 795f415f70f75d4cd841078aaa7a0dc14f9ebdd9 (patch) | |
tree | 6f1dc69c21e388e258a2c459bd5c299b4869d450 /src/binary-reader-ir.cc | |
parent | 963f973469b45969ce198e0c86d3af316790a780 (diff) | |
download | wabt-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.cc | 1 |
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; } |