diff options
author | Derek Schuff <dschuff@chromium.org> | 2024-12-06 12:34:19 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-06 20:34:19 +0000 |
commit | 729ea41d145d369b203dca6f70b251ea365cb3d0 (patch) | |
tree | 269217c2d17d6e8a4a59eb6b822aa4cdac17aa28 /src/wasm/wasm.cpp | |
parent | 3f82ffc70362bf967d91d3cb56ee4c8c5ebe1161 (diff) | |
download | binaryen-729ea41d145d369b203dca6f70b251ea365cb3d0.tar.gz binaryen-729ea41d145d369b203dca6f70b251ea365cb3d0.tar.bz2 binaryen-729ea41d145d369b203dca6f70b251ea365cb3d0.zip |
Add bulk-memory-opt feature and ignore call-indirect-overlong (#7139)
LLVM recently split the bulk-memory-opt feature out from bulk-memory,
containing just memory.copy and memory.fill. This change follows that,
making bulk-memory-opt also enabled when all of bulk-memory is enabled.
It also introduces call-indirect-overlong following LLVM, but ignores
it, since Binaryen has always allowed the encoding (i.e. command
line flags enabling or disabling the feature are accepted but
ignored).
Diffstat (limited to 'src/wasm/wasm.cpp')
-rw-r--r-- | src/wasm/wasm.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp index f5806b184..3e04f29ec 100644 --- a/src/wasm/wasm.cpp +++ b/src/wasm/wasm.cpp @@ -57,6 +57,8 @@ const char* MultiMemoryFeature = "multimemory"; const char* TypedContinuationsFeature = "typed-continuations"; const char* SharedEverythingFeature = "shared-everything"; const char* FP16Feature = "fp16"; +const char* BulkMemoryOptFeature = "bulk-memory-opt"; +const char* CallIndirectOverlongFeature = "call-indirect-overlong"; } // namespace CustomSections } // namespace BinaryConsts |