aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.zig
diff options
context:
space:
mode:
authorLuuk de Gram <luuk@degram.dev>2022-11-21 20:31:58 +0100
committerLuuk de Gram <luuk@degram.dev>2022-11-30 17:56:01 +0100
commit2be0d5bbca5a261533b96dbc0e7bc400000e6e07 (patch)
tree5af7e57d44eda6510e37848eb4ae8f6d886e0c7d /src/codegen.zig
parent71038c42f554da86ee23c9c448d39e457d5818eb (diff)
downloadzig-2be0d5bbca5a261533b96dbc0e7bc400000e6e07.tar.gz
zig-2be0d5bbca5a261533b96dbc0e7bc400000e6e07.zip
wasm: add support packed structs in lowerConstant
When lowering constants of packed structs, which are smaller than 65 bits, we lower the value to an integer rather than store it in the constant data section. This allows us to use an immediate value, for quick loads and stores.
Diffstat (limited to 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions