diff options
author | lizhengxing <unixhaha@gmail.com> | 2018-02-19 10:59:22 -0800 |
---|---|---|
committer | Ben Smith <binjimin@gmail.com> | 2018-02-19 10:59:22 -0800 |
commit | 68a134ceddb750de7fc2cee29be726c779e4838c (patch) | |
tree | 498ed16e8b39713e47b9bbf8165e6b1297a84440 /src/binary-reader-ir.cc | |
parent | 7b196f2f743d05f56dfec2b8f005e3f74b8ad2bc (diff) | |
download | wabt-68a134ceddb750de7fc2cee29be726c779e4838c.tar.gz wabt-68a134ceddb750de7fc2cee29be726c779e4838c.tar.bz2 wabt-68a134ceddb750de7fc2cee29be726c779e4838c.zip |
SIMD v128.bitselect instruction implementation. (#759)
Diffstat (limited to 'src/binary-reader-ir.cc')
-rw-r--r-- | src/binary-reader-ir.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/binary-reader-ir.cc b/src/binary-reader-ir.cc index 7d9c301f..80c173bd 100644 --- a/src/binary-reader-ir.cc +++ b/src/binary-reader-ir.cc @@ -177,6 +177,7 @@ class BinaryReaderIR : public BinaryReaderNop { Result OnTeeLocalExpr(Index local_index) override; Result OnTryExpr(Index num_types, Type* sig_types) override; Result OnUnaryExpr(Opcode opcode) override; + Result OnTernaryExpr(Opcode opcode) override; Result OnUnreachableExpr() override; Result EndFunctionBody(Index index) override; @@ -807,6 +808,10 @@ Result BinaryReaderIR::OnUnaryExpr(Opcode opcode) { return AppendExpr(MakeUnique<UnaryExpr>(opcode)); } +Result BinaryReaderIR::OnTernaryExpr(Opcode opcode) { + return AppendExpr(MakeUnique<TernaryExpr>(opcode)); +} + Result BinaryReaderIR::OnUnreachableExpr() { return AppendExpr(MakeUnique<UnreachableExpr>()); } |