summaryrefslogtreecommitdiff
path: root/src/ir/effects.h
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2023-09-18 12:42:45 -0700
committerGitHub <noreply@github.com>2023-09-18 19:42:45 +0000
commit003a6ffa56d7d1aa4918170236daaded6211d13b (patch)
tree11e933aaa4a563957487ebc5ed52c75eedf61427 /src/ir/effects.h
parentcd94f8af963ea8233fc15db35ff8d9e70aff22cf (diff)
downloadbinaryen-003a6ffa56d7d1aa4918170236daaded6211d13b.tar.gz
binaryen-003a6ffa56d7d1aa4918170236daaded6211d13b.tar.bz2
binaryen-003a6ffa56d7d1aa4918170236daaded6211d13b.zip
Implement table.fill (#5949)
This instruction was standardized as part of the bulk memory proposal, but we never implemented it until now. Leave similar instructions like table.copy as future work. Fixes #5939.
Diffstat (limited to 'src/ir/effects.h')
-rw-r--r--src/ir/effects.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ir/effects.h b/src/ir/effects.h
index 171a17803..9bdf08c74 100644
--- a/src/ir/effects.h
+++ b/src/ir/effects.h
@@ -692,6 +692,10 @@ private:
parent.readsTable = true;
parent.writesTable = true;
}
+ void visitTableFill(TableFill* curr) {
+ parent.writesTable = true;
+ parent.implicitTrap = true;
+ }
void visitTry(Try* curr) {
if (curr->delegateTarget.is()) {
parent.delegateTargets.insert(curr->delegateTarget);