summaryrefslogtreecommitdiff
path: root/src/passes/ExtractFunction.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [reference-types] remove single table restriction in IR (#3517)Abbas Mashayekh2021-02-091-1/+3
| | | Adds support for modules with multiple tables. Adds a field for the table name to `CallIndirect` and updates the C/JS APIs accordingly.
* Improve testing on Windows (#3142)Wouter van Oortmerssen2020-09-171-2/+1
| | | | | | This PR contains: - Changes that enable/disable tests on Windows to allow for better local testing. - Also changes many abort() into Fatal() when it is really just exiting on error. This is because abort() generates a dialog window on Windows which is not great in automated scripts. - Improvements to CMake to better work with the project in IDEs (VS).
* Add a --strip-dwarf pass (#2454)Alon Zakai2019-11-191-6/+8
| | | | | | | | | | | | | This pass strips DWARF debug sections, but not other debug sections. This is useful when emitting source maps, as we do need the SourceMapURL section, but the DWARF sections are not longer necessary (and we've seen a testcase where they are massively large, so big the wasm can't even be loaded in a browser...). Also contains a trivial one-line fix in --extract-function which was necessary to create the testcase here: that pass extracts a function from a wasm file (like llvm-extract) but it didn't check if an export already existed for the function.
* Don't use colons in filenames (#2134)Derek Schuff2019-05-211-1/+1
| | | Windows filenames can't contain colons. Use @ instead for passing arguments to passes.
* Apply format changes from #2048 (#2059)Alon Zakai2019-04-261-6/+5
| | | 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
* Add a mechanism to pass arguments to passes (#1941)Alon Zakai2019-04-031-13/+9
| | | | | | | | | This allows wasm-opt --pass-arg=KEY:VALUE where KEY and VALUE are strings. It is then added to passOptions.arguments, where passes can read it. This is used in ExtractFunction instead of an env var.
* improve --extract-function (#1517)Alon Zakai2018-04-271-4/+22
| | | Remove more of the unwanted stuff, and leave just an export to the function we are extracting. Then optimizations can do an effective cleanup.
* make ExtractFunction use an env var instead of a hardcoded stringAlon Zakai2016-11-061-2/+8
|
* add ExtractFunction passAlon Zakai2016-09-131-0/+46