summaryrefslogtreecommitdiff
path: root/test/lit/help
diff options
context:
space:
mode:
authorChristian Speckner <christian.speckner@mayflower.de>2024-07-16 01:04:37 +0200
committerGitHub <noreply@github.com>2024-07-15 16:04:37 -0700
commitfd8b2bd43d73cf1976426e60c22c5261fa343510 (patch)
tree79d1fbc91d65ba0f8a4a6b3db0ca070b0628ebda /test/lit/help
parentaec516f1259c3fec92982db92dc0e4e67ab2251a (diff)
downloadbinaryen-fd8b2bd43d73cf1976426e60c22c5261fa343510.tar.gz
binaryen-fd8b2bd43d73cf1976426e60c22c5261fa343510.tar.bz2
binaryen-fd8b2bd43d73cf1976426e60c22c5261fa343510.zip
Allow different arguments for multiple instances of a pass (#6687)
Each pass instance can now store an argument for it, which can be different. This may be a breaking change for the corner case of running a pass multiple times and setting the pass's argument multiple times as well (before, the last pass argument affected them all; now, it affects the last instance only). This only affects arguments with the name of a pass; others remain global, as before (and multiple passes can read them, in fact). See the CHANGELOG for details. Fixes #6646
Diffstat (limited to 'test/lit/help')
-rw-r--r--test/lit/help/wasm-as.test7
-rw-r--r--test/lit/help/wasm-ctor-eval.test7
-rw-r--r--test/lit/help/wasm-dis.test7
-rw-r--r--test/lit/help/wasm-emscripten-finalize.test7
-rw-r--r--test/lit/help/wasm-merge.test7
-rw-r--r--test/lit/help/wasm-metadce.test9
-rw-r--r--test/lit/help/wasm-opt.test9
-rw-r--r--test/lit/help/wasm-reduce.test7
-rw-r--r--test/lit/help/wasm-split.test7
-rw-r--r--test/lit/help/wasm2js.test9
10 files changed, 66 insertions, 10 deletions
diff --git a/test/lit/help/wasm-as.test b/test/lit/help/wasm-as.test
index 114064576..3a863dbd6 100644
--- a/test/lit/help/wasm-as.test
+++ b/test/lit/help/wasm-as.test
@@ -121,7 +121,12 @@
;; CHECK-NEXT:
;; CHECK-NEXT: --pass-arg,-pa An argument passed along to optimization
;; CHECK-NEXT: passes being run. Must be in the form
-;; CHECK-NEXT: KEY@VALUE
+;; CHECK-NEXT: KEY@VALUE. If KEY is the name of a pass
+;; CHECK-NEXT: then it applies to the closest instance
+;; CHECK-NEXT: of that pass before us. If KEY is not the
+;; CHECK-NEXT: name of a pass then it is a global option
+;; CHECK-NEXT: that applies to all pass instances that
+;; CHECK-NEXT: read it.
;; CHECK-NEXT:
;; CHECK-NEXT: --closed-world,-cw Assume code outside of the module does
;; CHECK-NEXT: not inspect or interact with GC and
diff --git a/test/lit/help/wasm-ctor-eval.test b/test/lit/help/wasm-ctor-eval.test
index 93b5654ed..2d57e3e8c 100644
--- a/test/lit/help/wasm-ctor-eval.test
+++ b/test/lit/help/wasm-ctor-eval.test
@@ -128,7 +128,12 @@
;; CHECK-NEXT:
;; CHECK-NEXT: --pass-arg,-pa An argument passed along to optimization
;; CHECK-NEXT: passes being run. Must be in the form
-;; CHECK-NEXT: KEY@VALUE
+;; CHECK-NEXT: KEY@VALUE. If KEY is the name of a pass
+;; CHECK-NEXT: then it applies to the closest instance
+;; CHECK-NEXT: of that pass before us. If KEY is not the
+;; CHECK-NEXT: name of a pass then it is a global option
+;; CHECK-NEXT: that applies to all pass instances that
+;; CHECK-NEXT: read it.
;; CHECK-NEXT:
;; CHECK-NEXT: --closed-world,-cw Assume code outside of the module does
;; CHECK-NEXT: not inspect or interact with GC and
diff --git a/test/lit/help/wasm-dis.test b/test/lit/help/wasm-dis.test
index 06dda9e96..63c7f8bd0 100644
--- a/test/lit/help/wasm-dis.test
+++ b/test/lit/help/wasm-dis.test
@@ -114,7 +114,12 @@
;; CHECK-NEXT:
;; CHECK-NEXT: --pass-arg,-pa An argument passed along to optimization
;; CHECK-NEXT: passes being run. Must be in the form
-;; CHECK-NEXT: KEY@VALUE
+;; CHECK-NEXT: KEY@VALUE. If KEY is the name of a pass
+;; CHECK-NEXT: then it applies to the closest instance
+;; CHECK-NEXT: of that pass before us. If KEY is not the
+;; CHECK-NEXT: name of a pass then it is a global option
+;; CHECK-NEXT: that applies to all pass instances that
+;; CHECK-NEXT: read it.
;; CHECK-NEXT:
;; CHECK-NEXT: --closed-world,-cw Assume code outside of the module does
;; CHECK-NEXT: not inspect or interact with GC and
diff --git a/test/lit/help/wasm-emscripten-finalize.test b/test/lit/help/wasm-emscripten-finalize.test
index 1b31e1e44..c92960dfb 100644
--- a/test/lit/help/wasm-emscripten-finalize.test
+++ b/test/lit/help/wasm-emscripten-finalize.test
@@ -156,7 +156,12 @@
;; CHECK-NEXT:
;; CHECK-NEXT: --pass-arg,-pa An argument passed along to optimization
;; CHECK-NEXT: passes being run. Must be in the form
-;; CHECK-NEXT: KEY@VALUE
+;; CHECK-NEXT: KEY@VALUE. If KEY is the name of a pass
+;; CHECK-NEXT: then it applies to the closest instance
+;; CHECK-NEXT: of that pass before us. If KEY is not the
+;; CHECK-NEXT: name of a pass then it is a global option
+;; CHECK-NEXT: that applies to all pass instances that
+;; CHECK-NEXT: read it.
;; CHECK-NEXT:
;; CHECK-NEXT: --closed-world,-cw Assume code outside of the module does
;; CHECK-NEXT: not inspect or interact with GC and
diff --git a/test/lit/help/wasm-merge.test b/test/lit/help/wasm-merge.test
index 293bdbff0..fe3f1cdb2 100644
--- a/test/lit/help/wasm-merge.test
+++ b/test/lit/help/wasm-merge.test
@@ -144,7 +144,12 @@
;; CHECK-NEXT:
;; CHECK-NEXT: --pass-arg,-pa An argument passed along to optimization
;; CHECK-NEXT: passes being run. Must be in the form
-;; CHECK-NEXT: KEY@VALUE
+;; CHECK-NEXT: KEY@VALUE. If KEY is the name of a pass
+;; CHECK-NEXT: then it applies to the closest instance
+;; CHECK-NEXT: of that pass before us. If KEY is not the
+;; CHECK-NEXT: name of a pass then it is a global option
+;; CHECK-NEXT: that applies to all pass instances that
+;; CHECK-NEXT: read it.
;; CHECK-NEXT:
;; CHECK-NEXT: --closed-world,-cw Assume code outside of the module does
;; CHECK-NEXT: not inspect or interact with GC and
diff --git a/test/lit/help/wasm-metadce.test b/test/lit/help/wasm-metadce.test
index 5b621caf5..66013f81a 100644
--- a/test/lit/help/wasm-metadce.test
+++ b/test/lit/help/wasm-metadce.test
@@ -733,7 +733,14 @@
;; CHECK-NEXT:
;; CHECK-NEXT: --pass-arg,-pa An argument passed along to
;; CHECK-NEXT: optimization passes being run.
-;; CHECK-NEXT: Must be in the form KEY@VALUE
+;; CHECK-NEXT: Must be in the form KEY@VALUE.
+;; CHECK-NEXT: If KEY is the name of a pass
+;; CHECK-NEXT: then it applies to the closest
+;; CHECK-NEXT: instance of that pass before us.
+;; CHECK-NEXT: If KEY is not the name of a pass
+;; CHECK-NEXT: then it is a global option that
+;; CHECK-NEXT: applies to all pass instances
+;; CHECK-NEXT: that read it.
;; CHECK-NEXT:
;; CHECK-NEXT: --closed-world,-cw Assume code outside of the
;; CHECK-NEXT: module does not inspect or
diff --git a/test/lit/help/wasm-opt.test b/test/lit/help/wasm-opt.test
index 9f7caf98b..c89baaf4a 100644
--- a/test/lit/help/wasm-opt.test
+++ b/test/lit/help/wasm-opt.test
@@ -742,7 +742,14 @@
;; CHECK-NEXT:
;; CHECK-NEXT: --pass-arg,-pa An argument passed along to
;; CHECK-NEXT: optimization passes being run.
-;; CHECK-NEXT: Must be in the form KEY@VALUE
+;; CHECK-NEXT: Must be in the form KEY@VALUE.
+;; CHECK-NEXT: If KEY is the name of a pass
+;; CHECK-NEXT: then it applies to the closest
+;; CHECK-NEXT: instance of that pass before us.
+;; CHECK-NEXT: If KEY is not the name of a pass
+;; CHECK-NEXT: then it is a global option that
+;; CHECK-NEXT: applies to all pass instances
+;; CHECK-NEXT: that read it.
;; CHECK-NEXT:
;; CHECK-NEXT: --closed-world,-cw Assume code outside of the
;; CHECK-NEXT: module does not inspect or
diff --git a/test/lit/help/wasm-reduce.test b/test/lit/help/wasm-reduce.test
index 397952855..cacf260fa 100644
--- a/test/lit/help/wasm-reduce.test
+++ b/test/lit/help/wasm-reduce.test
@@ -150,7 +150,12 @@
;; CHECK-NEXT:
;; CHECK-NEXT: --pass-arg,-pa An argument passed along to optimization
;; CHECK-NEXT: passes being run. Must be in the form
-;; CHECK-NEXT: KEY@VALUE
+;; CHECK-NEXT: KEY@VALUE. If KEY is the name of a pass
+;; CHECK-NEXT: then it applies to the closest instance
+;; CHECK-NEXT: of that pass before us. If KEY is not the
+;; CHECK-NEXT: name of a pass then it is a global option
+;; CHECK-NEXT: that applies to all pass instances that
+;; CHECK-NEXT: read it.
;; CHECK-NEXT:
;; CHECK-NEXT: --closed-world,-cw Assume code outside of the module does
;; CHECK-NEXT: not inspect or interact with GC and
diff --git a/test/lit/help/wasm-split.test b/test/lit/help/wasm-split.test
index c118d302d..bc09796d7 100644
--- a/test/lit/help/wasm-split.test
+++ b/test/lit/help/wasm-split.test
@@ -231,7 +231,12 @@
;; CHECK-NEXT:
;; CHECK-NEXT: --pass-arg,-pa An argument passed along to optimization
;; CHECK-NEXT: passes being run. Must be in the form
-;; CHECK-NEXT: KEY@VALUE
+;; CHECK-NEXT: KEY@VALUE. If KEY is the name of a pass
+;; CHECK-NEXT: then it applies to the closest instance
+;; CHECK-NEXT: of that pass before us. If KEY is not the
+;; CHECK-NEXT: name of a pass then it is a global option
+;; CHECK-NEXT: that applies to all pass instances that
+;; CHECK-NEXT: read it.
;; CHECK-NEXT:
;; CHECK-NEXT: --closed-world,-cw Assume code outside of the module does
;; CHECK-NEXT: not inspect or interact with GC and
diff --git a/test/lit/help/wasm2js.test b/test/lit/help/wasm2js.test
index ca731d277..45bef7d73 100644
--- a/test/lit/help/wasm2js.test
+++ b/test/lit/help/wasm2js.test
@@ -696,7 +696,14 @@
;; CHECK-NEXT:
;; CHECK-NEXT: --pass-arg,-pa An argument passed along to
;; CHECK-NEXT: optimization passes being run.
-;; CHECK-NEXT: Must be in the form KEY@VALUE
+;; CHECK-NEXT: Must be in the form KEY@VALUE.
+;; CHECK-NEXT: If KEY is the name of a pass
+;; CHECK-NEXT: then it applies to the closest
+;; CHECK-NEXT: instance of that pass before us.
+;; CHECK-NEXT: If KEY is not the name of a pass
+;; CHECK-NEXT: then it is a global option that
+;; CHECK-NEXT: applies to all pass instances
+;; CHECK-NEXT: that read it.
;; CHECK-NEXT:
;; CHECK-NEXT: --closed-world,-cw Assume code outside of the
;; CHECK-NEXT: module does not inspect or