diff options
author | Ashley Nelson <nashley@google.com> | 2022-09-15 15:59:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-15 15:59:49 -0700 |
commit | 2a06bb4a7315162328d091a6eb2bb04fb53018c5 (patch) | |
tree | b67ad2833ccb7687e9c20c419c8df43de13aa723 /src/ir/names.h | |
parent | 2fdb22bc26185e94ccd775bbfe8ea271be03df45 (diff) | |
download | binaryen-2a06bb4a7315162328d091a6eb2bb04fb53018c5.tar.gz binaryen-2a06bb4a7315162328d091a6eb2bb04fb53018c5.tar.bz2 binaryen-2a06bb4a7315162328d091a6eb2bb04fb53018c5.zip |
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.
Diffstat (limited to 'src/ir/names.h')
-rw-r--r-- | src/ir/names.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ir/names.h b/src/ir/names.h index 4bdfacb1e..b2165c2c2 100644 --- a/src/ir/names.h +++ b/src/ir/names.h @@ -83,6 +83,10 @@ inline Name getValidElementSegmentName(Module& module, Name root) { return getValidName( root, [&](Name test) { return !module.getElementSegmentOrNull(test); }); } +inline Name getValidMemoryName(Module& module, Name root) { + return getValidName(root, + [&](Name test) { return !module.getMemoryOrNull(test); }); +} inline Name getValidLocalName(Function& func, Name root) { return getValidName(root, [&](Name test) { return !func.hasLocalIndex(test); }); |