summaryrefslogtreecommitdiff
path: root/src/passes/passes.h
diff options
context:
space:
mode:
authorAshley Nelson <nashley@google.com>2022-12-09 16:18:44 -0800
committerGitHub <noreply@github.com>2022-12-09 16:18:44 -0800
commitf5e71e6d2be82639681fc7d45794645e03d2ad93 (patch)
treea4438a50c46f3c96aefdc469e5fde272a87518dd /src/passes/passes.h
parent082dbe25b7377809b1b3dc429cb334fc80fac286 (diff)
downloadbinaryen-f5e71e6d2be82639681fc7d45794645e03d2ad93.tar.gz
binaryen-f5e71e6d2be82639681fc7d45794645e03d2ad93.tar.bz2
binaryen-f5e71e6d2be82639681fc7d45794645e03d2ad93.zip
Adds bounds checks to Load/Store in Multi-Memories Lowering Pass (#5256)
Per the wasm spec guidelines for Load (rule 10) & Store (rule 12), this PR adds an option for bounds checking, producing a runtime error if the instruction exceeds the bounds of the particular memory within the combined memory.
Diffstat (limited to 'src/passes/passes.h')
-rw-r--r--src/passes/passes.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/passes/passes.h b/src/passes/passes.h
index 1543ae794..8133c867e 100644
--- a/src/passes/passes.h
+++ b/src/passes/passes.h
@@ -87,6 +87,7 @@ Pass* createMetricsPass();
Pass* createMonomorphizePass();
Pass* createMonomorphizeAlwaysPass();
Pass* createMultiMemoryLoweringPass();
+Pass* createMultiMemoryLoweringWithBoundsChecksPass();
Pass* createNameListPass();
Pass* createNameTypesPass();
Pass* createOnceReductionPass();