aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/spirv.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2024-04-29 23:41:08 +0100
committermlugg <mlugg@mlugg.co.uk>2024-09-01 18:30:31 +0100
commitcb68c0917ab6ef858a7a9a3ed9e85672304f7ab2 (patch)
tree331d83110d74e2a99ba3195b745c21be13e34ad7 /src/codegen/spirv.zig
parent3b52e5a2217baca92f0328c0f9134e982bf15698 (diff)
downloadzig-cb68c0917ab6ef858a7a9a3ed9e85672304f7ab2.tar.gz
zig-cb68c0917ab6ef858a7a9a3ed9e85672304f7ab2.zip
wasm: un-regress `loop` and `switch_br`
`.loop` is also a block, so the block_depth must be stored *after* block creation, ensuring a correct block_depth to jump back to when receiving `.repeat`. This also un-regresses `switch_br` which now correctly handles ranges within cases. It supports it for both jump tables as well as regular conditional branches.
Diffstat (limited to 'src/codegen/spirv.zig')
0 files changed, 0 insertions, 0 deletions