Skip to content

Poppify pass #3541

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Feb 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/pass.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@ struct PassRunner {
PassRunner(const PassRunner&) = delete;
PassRunner& operator=(const PassRunner&) = delete;

// But we can make it easy to create a nested runner
// TODO: Go through and use this in more places
explicit PassRunner(const PassRunner* runner)
: wasm(runner->wasm), allocator(runner->allocator),
options(runner->options), isNested(true) {}

void setDebug(bool debug) {
options.debug = debug;
// validate everything by default if debugging
Expand Down
1 change: 1 addition & 0 deletions src/passes/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ set(passes_SOURCES
OptimizeAddedConstants.cpp
OptimizeInstructions.cpp
PickLoadSigns.cpp
Poppify.cpp
PostAssemblyScript.cpp
PostEmscripten.cpp
Precompute.cpp
Expand Down
Loading