binaryen icon indicating copy to clipboard operation
binaryen copied to clipboard

Optimizer and compiler/toolchain library for WebAssembly

Results 496 binaryen issues
Sort by recently updated
recently updated
newest added

wasm-opt does not support running on a Wasm component, that is the default with WASIp2. wasm-opt is used for example in LLVM to optimize compiled binaries (see https://github.com/llvm/llvm-project/pull/98373/), which is...

When assembling the following invalid WAT code: ```.wat (module (type $t (struct)) (func (param i32) (struct.new $t (local.get 0)))) ``` the assembler rejects it with the following error message: ```...

Hi, here is a followup for https://github.com/tinygo-org/tinygo/issues/4332 I am trying to compile tinygo for Arch Linux in its clean build environment. `tinygo` in turn include `binaryen` (commit 11dba9b). Compilation for...

**When I write the test case, I want to test the type builder, but the above error occurs, and I don't understand it.** ![image](https://github.com/WebAssembly/binaryen/assets/75302171/a189b987-0f71-4aa1-af9e-b9e5a4a7b08a) ![image](https://github.com/WebAssembly/binaryen/assets/75302171/61f7ff6b-757a-4516-a9dd-013f9f9e1f78)

Version 118 seems to have just been released on Github, but not all the artifacts are uploaded yet (the `Create Release` action is still running and I can only see...

Version: 117 Platform: Windows 11 (x64) Using `-O2` and higher on Windows produces `UNREACHABLE executed at Precompute.cpp:838` error. I've attached the binary that helps to reproduce the behavior. [stardew-valley-designer-app-web-wasm-js.wasm.zip](https://github.com/user-attachments/files/16080804/stardew-valley-designer-app-web-wasm-js.wasm.zip) To...

This pass is more aggressive optimization which assumes memory visit instruction will not overflow during arithmetic operations. Out of bound memory usages are either UB (e.g. C++) or protected /...

Testcase is based off of fuzzing the testcase from https://github.com/WebAssembly/binaryen/issues/7015, reduced. ``` $ bin/wasm-opt a.wat -all --type-merging --closed-world wasm-opt: src/support/dfa_minimization.h:75: std::vector wasm::DFA::refinePartitions(const std::vector&) [with T = wasm::HeapType]: Assertion `it !=...

Binaryen version: 119 When executing wasm-opt with enabled option closed-world got: `Fatal: Internal GlobalTypeRewriter build error: Heap type has an invalid supertype at index 1` Command that execute: `wasm-opt --enable-gc...