binaryen
binaryen copied to clipboard
Optimizer and compiler/toolchain library for WebAssembly
When running binaryen 111 test suite after building it with GCC 13 on x86_64 running Fedora rawhide, I get the following failure: ``` 1603/2511 CHECKING: ( assert_return ( invoke min...
This will enable us to use new features including concepts and coroutines to make our code easier to read and write.
This change introduces a prototype max bits analysis for values in the wasm value stack using the abstract interpretation static analysis framework. The implementation mirrors the existing `getMaxBits` function in...
Currently Chrome and Firefox are unhelpful in diagnosing `call_indirect` errors, but when one occurs, a blank error print ``` RuntimeError: null function or function signature mismatch ``` is logged. This...
Once open I'll add a comment with a link to the relevant part.
Maybe we can add a ControlChildIterator to parallel ValueChildIterator, that iterates on control flow children, and use that here? It would avoid us needing to update this code each time...
Right now almost all casts are represented as `RefCast` expressions, but `ref.as_non_null` is instead represented as a `RefAs` expression. This is a little awkward because the other two operations represented...
Consider the following module: ``` (module (type $t (func (param i32) (result i32))) (type $u (func (param (ref $t)))) (func $g (type $t) (param i32) (result i32) (local.get 0)) (import...
cc @aheejin
I've received [a request](https://github.com/brson/wasm-opt-rs/issues/141) to make it possible for wasm-opt-rs to perform optimization entirely in memory without accessing the filesystem. This seems like a reasonable feature, and relatively easy to...