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

The name of the import object might not always be "env" (e.g. when Emscripten minifies the import name to a shorter string "a"). Adjust LogExecution pass to discover the import...

Assemble the following with `wabt`'s `wat2wasm`: ```wat (module (func (param i32 i32) (i32.const 0) (loop $loop (param i32) (if (then (local.set 0 (i32.add (local.get 0) (i32.const 2))))) (block (local.set 1...

Below is a simple(ish) sudoku solver. `emcc a.cpp -o a.html` produces a working program. If I then add `wasm-opt a.wasm --spill-pointers -o a.wasm` I get `Uncaught RuntimeError: indirect call to...

```wat (module (type (;0;) (func)) (type (;1;) (func (result externref))) (import "gl" "createProgram" (func $src/asc/gl/createProgram (type 1))) (func $src/asc/lemonsoda/init (type 0) call $src/asc/gl/createProgram drop ) (export "init" (func $src/asc/lemonsoda/init)) )...

In https://github.com/WebAssembly/binaryen/blob/fc00dcc64c337a8128fbf2b5fbdb40bb0aaa861b/src/passes/I64ToI32Lowering.cpp#L548-L584 there are assumptions made that are unsafe for multithreaded Wasm2JS builds. The memory address zero could be trashed by other threads when they are reinterpreted as float64/int64. Also...

While reading @kripken 's [post on asyncify](https://kripken.github.io/blog/wasm/2019/07/16/asyncify.html), I gave the test case shown a go: ``` (memory 1 1) (import "spectest" "print" (func $print (param i32))) (import "asyncify" "start_unwind" (func...

I am looking at reducing a large wasm test case down (hundreds of .o files, see https://github.com/llvm/llvm-project/issues/55111 ) to the smallest repro part. If the test case is LLVM IR,...

Take more advantage of DAEScanner threading by aggregating calls to function as they are scanned opposed to tracking the calls a function makes and then aggregating in another pass. This...

I am working what would expect to be a rather large c++ code based and compiling for webassembly One thing i have noticed during the process is the performance of...