summaryrefslogtreecommitdiff
path: root/src/wasm-interpreter.h
diff options
context:
space:
mode:
authorThomas Lively <7121787+tlively@users.noreply.github.com>2021-01-06 14:36:27 -0500
committerGitHub <noreply@github.com>2021-01-06 11:36:27 -0800
commit3d414652d36aeb27896cc6666ef15db39f245786 (patch)
tree695c7bc5a3c47dff0330b625f2e61cb040accc6d /src/wasm-interpreter.h
parentb79661ee03fc74b3f860bf04e6f1019f7b11c722 (diff)
downloadbinaryen-3d414652d36aeb27896cc6666ef15db39f245786.tar.gz
binaryen-3d414652d36aeb27896cc6666ef15db39f245786.tar.bz2
binaryen-3d414652d36aeb27896cc6666ef15db39f245786.zip
Prototype prefetch instructions (#3467)
As proposed in https://github.com/WebAssembly/simd/pull/352, using the opcodes used in the LLVM and V8 implementations.
Diffstat (limited to 'src/wasm-interpreter.h')
-rw-r--r--src/wasm-interpreter.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h
index 3d963269d..392b0c2bc 100644
--- a/src/wasm-interpreter.h
+++ b/src/wasm-interpreter.h
@@ -1167,6 +1167,14 @@ public:
NOTE_ENTER("Nop");
return Flow();
}
+ Flow visitPrefetch(Prefetch* curr) {
+ NOTE_ENTER("Prefetch");
+ Flow flow = visit(curr->ptr);
+ if (flow.breaking()) {
+ return flow;
+ }
+ return Flow();
+ }
Flow visitUnreachable(Unreachable* curr) {
NOTE_ENTER("Unreachable");
trap("unreachable");