diff options
author | Thomas Lively <tlively@google.com> | 2024-09-16 15:57:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-16 15:57:33 -0700 |
commit | 92923108b4bb5da059c0ddd46b254234a9d1c7a5 (patch) | |
tree | 0abc0664379bd702462ccbada448b528a458768a /test/lit/help | |
parent | 6c07a328e5ce0e1ac187a55d07faf6be642774a5 (diff) | |
download | binaryen-92923108b4bb5da059c0ddd46b254234a9d1c7a5.tar.gz binaryen-92923108b4bb5da059c0ddd46b254234a9d1c7a5.tar.bz2 binaryen-92923108b4bb5da059c0ddd46b254234a9d1c7a5.zip |
[wasm-split] Add a multi-split mode (#6943)
Add a mode that splits a module into arbitrarily many parts based on a
simple manifest file. This is currently implemented by splitting out one
module at a time in a loop, but this could change in the future if
splitting out all the modules at once would improve the quality of the
output.
Diffstat (limited to 'test/lit/help')
-rw-r--r-- | test/lit/help/wasm-split.test | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/test/lit/help/wasm-split.test b/test/lit/help/wasm-split.test index 4fa534e43..e5e736562 100644 --- a/test/lit/help/wasm-split.test +++ b/test/lit/help/wasm-split.test @@ -15,6 +15,9 @@ ;; CHECK-NEXT: --split Split an input module into two output ;; CHECK-NEXT: modules. The default mode. ;; CHECK-NEXT: +;; CHECK-NEXT: --multi-split Split an input module into an arbitrary +;; CHECK-NEXT: number of output modules. +;; CHECK-NEXT: ;; CHECK-NEXT: --instrument Instrument an input module to allow it to ;; CHECK-NEXT: generate a profile that can be used to ;; CHECK-NEXT: guide splitting. @@ -43,6 +46,18 @@ ;; CHECK-NEXT: can also pass a file with one function ;; CHECK-NEXT: per line by passing @filename. ;; CHECK-NEXT: +;; CHECK-NEXT: --manifest [multi-split] File describing the +;; CHECK-NEXT: functions to be split into each module. +;; CHECK-NEXT: Each section separated by a blank line +;; CHECK-NEXT: begins with the base name of an output +;; CHECK-NEXT: module, which is followed by a list of +;; CHECK-NEXT: functions to place in that module, one +;; CHECK-NEXT: per line. +;; CHECK-NEXT: +;; CHECK-NEXT: --out-prefix [multi-split] Prefix prepended to module +;; CHECK-NEXT: names in the manifest file to create +;; CHECK-NEXT: output file names. +;; CHECK-NEXT: ;; CHECK-NEXT: --primary-output,-o1 [split] Output file for the primary ;; CHECK-NEXT: module. ;; CHECK-NEXT: @@ -125,10 +140,12 @@ ;; CHECK-NEXT: --emit-text,-S [split, instrument] Emit text instead of ;; CHECK-NEXT: binary for the output file or files. ;; CHECK-NEXT: -;; CHECK-NEXT: --debuginfo,-g [split, instrument] Emit names section in -;; CHECK-NEXT: wasm binary (or full debuginfo in wast) +;; CHECK-NEXT: --debuginfo,-g [split, multi-split, instrument] Emit +;; CHECK-NEXT: names section in wasm binary (or full +;; CHECK-NEXT: debuginfo in wast) ;; CHECK-NEXT: -;; CHECK-NEXT: --output,-o [instrument, merge-profiles] Output file. +;; CHECK-NEXT: --output,-o [instrument, merge-profiles, multi-split] +;; CHECK-NEXT: Output file. ;; CHECK-NEXT: ;; CHECK-NEXT: --unescape,-u Un-escape function names (in ;; CHECK-NEXT: print-profile output) |