diff options
author | Ng Zhi An <ngzhian@gmail.com> | 2021-03-17 09:17:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-17 09:17:00 -0700 |
commit | c7293e42c587cab2b15eaf2934f574f84eeab9e5 (patch) | |
tree | a800fdcee60af3effba7ee2c9e316b15f9c9a9b1 /src/expr-visitor.h | |
parent | a24ae3eed05f28d91a48dac2591619dd204e4526 (diff) | |
download | wabt-c7293e42c587cab2b15eaf2934f574f84eeab9e5.tar.gz wabt-c7293e42c587cab2b15eaf2934f574f84eeab9e5.tar.bz2 wabt-c7293e42c587cab2b15eaf2934f574f84eeab9e5.zip |
[simd] Implement v128.load{32,64}_zero (#1644)
This requires a new ir type, and the relevant implementation of virtual
mthods in the various visitors.
Diffstat (limited to 'src/expr-visitor.h')
-rw-r--r-- | src/expr-visitor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/expr-visitor.h b/src/expr-visitor.h index f30607ce..0412048e 100644 --- a/src/expr-visitor.h +++ b/src/expr-visitor.h @@ -134,6 +134,7 @@ class ExprVisitor::Delegate { virtual Result OnSimdLaneOpExpr(SimdLaneOpExpr*) = 0; virtual Result OnSimdShuffleOpExpr(SimdShuffleOpExpr*) = 0; virtual Result OnLoadSplatExpr(LoadSplatExpr*) = 0; + virtual Result OnLoadZeroExpr(LoadZeroExpr*) = 0; }; class ExprVisitor::DelegateNop : public ExprVisitor::Delegate { @@ -208,6 +209,7 @@ class ExprVisitor::DelegateNop : public ExprVisitor::Delegate { Result OnSimdLaneOpExpr(SimdLaneOpExpr*) override { return Result::Ok; } Result OnSimdShuffleOpExpr(SimdShuffleOpExpr*) override { return Result::Ok; } Result OnLoadSplatExpr(LoadSplatExpr*) override { return Result::Ok; } + Result OnLoadZeroExpr(LoadZeroExpr*) override { return Result::Ok; } }; } // namespace wabt |