binaryen
binaryen copied to clipboard
Optimizer and compiler/toolchain library for WebAssembly
In support/alloc.h the usage of aligned_alloc fails to compile on GCC versions older than GCC5, by checking for the feature flag in the preprocessor, we can drop to posix_memalign and...
Here's the error log. Using normal cmake command as instructed in README. [ 76%] Building CXX object CMakeFiles/binaryen.dir/src/wasm/wasm-debug.cpp.o In file included from /Users/user/Downloads/binaryen/src/wasm/wasm-debug.cpp:21: In file included from /Users/user/Downloads/binaryen/third_party/llvm-project/include/llvm/ObjectYAML/DWARFEmitter.h:15: In file...
Atm we provide a way to say that a call has no side effects with an intrinsic, which is just an imported function: https://github.com/WebAssembly/binaryen/blob/f03044981fad2c1c4d366485b25995c6b4bb4052/src/ir/intrinsics.h#L42-L56 The wasm spec has been adding...
If/when we enable extended-const by default in LLVM we will need a corresponding lowering pass here in binaryen for users that target older browsers.
IIUC, we have this structure: ``` Type(i32) / \ Global("g1", i32) Global("g2", i32) | X | Literal(1) Literal(2) ``` There is no unique least upper bound of the two literals...
Added an option named `SKIP_OPTIMIZATIONS` to help resolve #7566
Hello! We found that wasm-opt sometimes crashes with the error `Segmentation fault (core dumped)'. What can help with debugging: - We use wasm-opt together with tinygo. - The error appears...
I would like to use binaryen just to emit WASM modules without optimizations, Wasm2JS and so on. Is it possible to compile somewhat minimal amount of code for that? Did...
Hi, I noticed that the latest version of wasm-opt as part of binaryen is 123, but the latest version on crates.io is 116: https://crates.io/crates/wasm-opt `cargo install` is a convenient cross-platform...
Given the following code: ``` webassembly (module (type $0 (func)) (type $1 (func (param i32 i32) (result i32))) (type $2 (func (result i32))) (type $3 (func (param i32) (result i32)))...