summaryrefslogtreecommitdiff
path: root/src/wasm-binary.h
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2023-08-28 12:41:14 -0500
committerGitHub <noreply@github.com>2023-08-28 10:41:14 -0700
commit0e5ee1cb368548f6890efcc05c980d5bb56f27d6 (patch)
treef3e82d514a5967a8bc7bac5470a4be6f2c7cb07b /src/wasm-binary.h
parent91114e6a9b69969e673ffb40e7dc54029d15a0f8 (diff)
downloadbinaryen-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/wasm-binary.h')
0 files changed, 0 insertions, 0 deletions