summaryrefslogtreecommitdiff
path: root/src/wasm-printing.h
Commit message (Collapse)AuthorAgeFilesLines
* Refactor printing code so that printing Expressions always works (#3450)Alon Zakai2020-12-171-70/+0
| | | | | | | | This avoids needing to add include wasm-printing if a file doesn't already have it. To achieve that, add the std::ostream hooks in wasm.h, and also use them when possible, removing the need for the special WasmPrinter object. Also stop printing in "full" (print types on each line) in error messages by default. The user can still get that, as always, using BINARYEN_PRINT_FULL=1 in the env.
* Fix ExpressionRunner issues found by the fuzzer (#2790)Daniel Wirtz2020-04-231-0/+4
| | | | | | | Fixes #2788 found by the fuzzer, introduced in #2702, which turned out to be incorrect usage of std::move, by removing any std::moves introduced in that PR to be better safe than sorry. Also fixes problems with WASM_INTERPRETER_DEBUG spotted during debugging.
* Apply format changes from #2048 (#2059)Alon Zakai2019-04-261-4/+9
| | | Mass change to apply clang-format to everything. We are applying this in a PR by me so the (git) blame is all mine ;) but @aheejin did all the work to get clang-format set up and all the manual work to tidy up some things to make the output nicer in #2048
* Print Stack IR in proper .wat format (#1630)Alon Zakai2018-08-141-1/+13
| | | This now makes --generate-stack-ir --print-stack-ir emit a fully valid .wat wasm file, in stacky format.
* Clean up printing code (#1548)Alon Zakai2018-05-151-16/+7
| | | | | * make the iostream overrides receive a reference, not a pointer (i.e., like e.g. LLVM IR printing works, and avoiding overriding printing of pointer addresses which is sort of odd) * move more code out of headers, especially unrelated headers.
* Add Features enum to IR (#1250)Derek Schuff2017-10-271-0/+1
| | | | | | | | | | | | This enum describes which wasm features the IR is expected to include. The validator should reject operations which require excluded features, and passes should avoid producing IR which requires excluded features. This makes it easier to catch possible errors in Binaryen producers (e.g. emscripten). Asm2wasm has a flag to enable or disable atomics. Other tools currently just accept all features (as, dis and opt are just for inspecting or modifying existing modules, so it would be annoying to have to use flags with those tools and I expect the risk of accidentally introducing atomics to be low).
* Make header guards consistent (#997)Sam Clegg2017-05-041-4/+3
|
* fix BINARYEN_PASS_DEBUG option (#908)Alon Zakai2017-02-231-0/+1
| | | | | * fix BINARYEN_PASS_DEBUG option * Add isNested property to passRunner
* print wasm types in full modeAlon Zakai2016-09-071-1/+1
|
* move function parallelism to pass and pass runner, which allows more ↵Alon Zakai2016-06-031-1/+1
| | | | efficient parallel execution (#564)
* simplify PassRunner API, get a module directlyAlon Zakai2016-05-051-2/+2
|
* refactor printingAlon Zakai2016-04-041-11/+19
|
* Whitespace removal.Michael2016-02-221-1/+1
|
* overload wasm printing in std namespaceAlon Zakai2016-02-171-0/+12
|
* add wasm-printing.hAlon Zakai2016-02-171-0/+37