diff options
author | Thomas Lively <tlively@google.com> | 2023-08-28 12:41:14 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-28 10:41:14 -0700 |
commit | 0e5ee1cb368548f6890efcc05c980d5bb56f27d6 (patch) | |
tree | f3e82d514a5967a8bc7bac5470a4be6f2c7cb07b /src/passes/Print.cpp | |
parent | 91114e6a9b69969e673ffb40e7dc54029d15a0f8 (diff) | |
download | binaryen-0e5ee1cb368548f6890efcc05c980d5bb56f27d6.tar.gz binaryen-0e5ee1cb368548f6890efcc05c980d5bb56f27d6.tar.bz2 binaryen-0e5ee1cb368548f6890efcc05c980d5bb56f27d6.zip |
Refactor IRBuilder to build blocks internally (#5901)
The initial PR introducing IRBuilder kept the interface the same as the previous
internal interface in the new wat parser. This PR updates that interface to
avoid exposing implementation details of the IRBuilder and to provide an API
that matches the binary format. For example, after calling `makeBlock` or
`visitBlock` at the beginning of a block, users now call `visitEnd()` at the end
of the block without having to manually install the block's contents.
Providing this improved interface requires refactoring some of the IRBuilder
internals. While we are refactoring things anyway, put in extra effort to avoid
unnecessarily splitting up and recombining tuples that could simply be returned
from a multivalue block.
Diffstat (limited to 'src/passes/Print.cpp')
0 files changed, 0 insertions, 0 deletions