summaryrefslogtreecommitdiff
path: root/test/lit/help/wasm-as.test
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/wasm-as.test
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/wasm-as.test')
-rw-r--r--test/lit/help/wasm-as.test7
1 files changed, 6 insertions, 1 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