From 2a06bb4a7315162328d091a6eb2bb04fb53018c5 Mon Sep 17 00:00:00 2001 From: Ashley Nelson Date: Thu, 15 Sep 2022 15:59:49 -0700 Subject: Multi-Memories wasm-split (#4977) Adds an --in-secondary-memory switch to the wasm-split tool that allows profile data to be stored in a separate memory from module main memory. With this option, users do not need to reserve the initial memory region for profile data and the data can be shared between multiple threads. --- test/lit/help/wasm-split.test | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'test/lit/help') diff --git a/test/lit/help/wasm-split.test b/test/lit/help/wasm-split.test index 1994c681a..2e798b077 100644 --- a/test/lit/help/wasm-split.test +++ b/test/lit/help/wasm-split.test @@ -54,9 +54,13 @@ ;; CHECK-NEXT: --placeholdermap [split] Write a file mapping placeholder ;; CHECK-NEXT: indices to the function names. ;; CHECK-NEXT: -;; CHECK-NEXT: --import-namespace [split] The namespace from which to import -;; CHECK-NEXT: objects from the primary module into the -;; CHECK-NEXT: secondary module. +;; CHECK-NEXT: --import-namespace [split, instrument] When provided as an +;; CHECK-NEXT: option for module splitting, the namespace +;; CHECK-NEXT: from which to import objects from the +;; CHECK-NEXT: primary module into the secondary module. +;; CHECK-NEXT: In instrument mode, refers to the +;; CHECK-NEXT: namespace from which to import the +;; CHECK-NEXT: secondary memory, if any. ;; CHECK-NEXT: ;; CHECK-NEXT: --placeholder-namespace [split] The namespace from which to import ;; CHECK-NEXT: placeholder functions into the primary @@ -85,6 +89,18 @@ ;; CHECK-NEXT: does not use the initial memory region for ;; CHECK-NEXT: anything else. ;; CHECK-NEXT: +;; CHECK-NEXT: --in-secondary-memory [instrument] Store profile information in +;; CHECK-NEXT: a separate memory, rather than in module +;; CHECK-NEXT: main memory or globals (the default). With +;; CHECK-NEXT: this option, users do not need to reserve +;; CHECK-NEXT: the initial memory region for profile data +;; CHECK-NEXT: and the data can be shared between +;; CHECK-NEXT: multiple threads. +;; CHECK-NEXT: +;; CHECK-NEXT: --secondary-memory-name [instrument] The name of the secondary +;; CHECK-NEXT: memory created to store profile +;; CHECK-NEXT: information. +;; CHECK-NEXT: ;; CHECK-NEXT: --emit-module-names [split, instrument] Emit module names, ;; CHECK-NEXT: even if not emitting the rest of the names ;; CHECK-NEXT: section. Can help differentiate the -- cgit v1.2.3