binaryen icon indicating copy to clipboard operation
binaryen copied to clipboard

Optimizer and compiler/toolchain library for WebAssembly

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

Re-open of https://github.com/WebAssembly/binaryen/issues/4554 The assert is still hit after https://github.com/WebAssembly/binaryen/pull/4555.

The s-expression language used by wasm-as and wasm-dis is non-compliant. It's not even just a subset, it's simultaneously a subset and a superset. So using it with compliant WAT code...

This would have caught #4534 early. This just runs the `lit` tests atm. Those are the ones we update the most so I think it has the most value, and...

This PR documents things I found when trying to add read-only-to-write type optimizations for wasm GC, in case it might be useful in the future. Atm I don't intend to...

I'm using wasm-ctor-eval as a great "extended compile-time evaluation" for when constexpr doesn't suffice. I did notice however that as the memory state gets saved after running, that includes the...

wasm-opt fails to process this code with `--enable-memory64 -O3`: ``` (module (type $i32_i64_=>_i32 (func (param i32 i64) (result i32))) (type $none_=>_none (func)) (memory $0 i64 256 256) (export "main" (func...

The latest code pushed to my [`stackify` branch](https://github.com/tlively/binaryen/tree/stackify) ([diff](https://github.com/tlively/binaryen/compare/master...tlively:stackify)) implements a new form of IR ("Poppy IR") that directly represents the stack machine structure of WebAssembly and is meant to...

Poppy IR

Our threading overhead seems significant. When I measure a fixed pure computational workload, replacing the body of a pass like `precompute` to instead just do some silly work, then measuring...

help wanted

Fuzzer found issue on seed 14358101859341333857. [a.wasm.zip](https://github.com/WebAssembly/binaryen/files/8173401/a.wasm.zip) ```console $ wasm-opt a.wasm --rse --print --all-features > b1.wat warning: no output file specified, not emitting output $ wasm-opt a.wasm --rse --print --all-features...

For C++ source code, ```cpp extern "C" int add (int first, int second) { return first + second; } ``` Compiling with clang-15 with `wasm64` target, ```bash clang --target=wasm64 --no-standard-libraries...