diff options
author | Alon Zakai <azakai@google.com> | 2022-06-06 13:24:11 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-06 13:24:11 -0700 |
commit | ec88ea6df0925ae0e648b26d327239e946de48a6 (patch) | |
tree | 78b92a32e971025e370c8cdbcfcd0538b540c33e /src/passes/pass.cpp | |
parent | b6040f5834c9ab7d52fc257cd65f3384304a73cf (diff) | |
download | binaryen-ec88ea6df0925ae0e648b26d327239e946de48a6.tar.gz binaryen-ec88ea6df0925ae0e648b26d327239e946de48a6.tar.bz2 binaryen-ec88ea6df0925ae0e648b26d327239e946de48a6.zip |
Restore and fix SpillPointers pass (#4570)
We have some possible use cases for this pass, and so are restoring
it.
This reverts the removal in #3261, fixes compile errors in internal API
changes since then, and flips the direction of the stack for the
wasm backend.
Diffstat (limited to 'src/passes/pass.cpp')
-rw-r--r-- | src/passes/pass.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/passes/pass.cpp b/src/passes/pass.cpp index 85a240dc3..8ff55eb1a 100644 --- a/src/passes/pass.cpp +++ b/src/passes/pass.cpp @@ -389,6 +389,9 @@ void PassRegistry::registerPasses() { registerPass("souperify-single-use", "emit Souper IR in text form (single-use nodes only)", createSouperifySingleUsePass); + registerPass("spill-pointers", + "spill pointers to the C stack (useful for Boehm-style GC)", + createSpillPointersPass); registerPass("stub-unsupported-js", "stub out unsupported JS operations", createStubUnsupportedJSOpsPass); |