diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2020-02-27 20:08:06 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-27 20:08:06 -0800 |
commit | 1f682f4323cb6b7d81dabccb0b989e6e542da7ce (patch) | |
tree | 6e8b23a20c485cf41fb083b89118f12e27b88fad /src/support/debug.cpp | |
parent | f0834cc1aa293f779005d11c39cd2874be9510f2 (diff) | |
download | binaryen-1f682f4323cb6b7d81dabccb0b989e6e542da7ce.tar.gz binaryen-1f682f4323cb6b7d81dabccb0b989e6e542da7ce.tar.bz2 binaryen-1f682f4323cb6b7d81dabccb0b989e6e542da7ce.zip |
Generalize binary writing for tuples (#2670)
Updates `BinaryInstWriter::mapLocalsAndEmitHeader` so it no longer hardcodes
each possible local type. Also adds a new inner loop over the elements of any
local tuple type in the IR. Updates the map from IR local indices to binary
indices to be additionally keyed on the index within a tuple type. Since we do
not generate tuple types yet, this additional index is hardcoded to zero
everywhere it is used for now. A later PR adding tuple creation operations will
extend this functionality and add tests.
Diffstat (limited to 'src/support/debug.cpp')
0 files changed, 0 insertions, 0 deletions