mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
stage2: Sema improvements and boolean logic astgen
* add `Module.setBlockBody` and related functions * redo astgen for `and` and `or` to use fewer ZIR instructions and require less processing for comptime known values * Sema: rework `analyzeBody` function. See the new doc comments in this commit. Divides ZIR instructions up into 3 categories: - always noreturn - never noreturn - sometimes noreturn
This commit is contained in:
parent
9f0b9b8da1
commit
2f391df2a7
4 changed files with 512 additions and 415 deletions
129
src/Module.zig
129
src/Module.zig
Loading…
Add table
Add a link
Reference in a new issue