0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib
Andrew Kelley 28a9da8bfc stage2: implement while loops (bool condition)
* introduce a dump() function on Module.Fn which helpfully prints to
   stderr the ZIR representation of a function (can be called before
   attempting to codegen it). This is a debugging tool.
 * implement x86 codegen for loops
 * liveness: fix analysis of conditional branches. The logic was buggy
   in a couple ways:
   - it never actually saved the results into the IR instruction (fixed now)
   - it incorrectly labeled operands as dying when their true death was
     after the conditional branch ended (fixed now)
 * zir rendering is enhanced to show liveness analysis results. this
   helps when debugging liveness analysis.
 * fix bug in zir rendering not numbering instructions correctly

closes #6021
History 2020-08-13 20:32:32 -07:00
..
include update clang C headers to 10.0.0rc2 2020-02-14 10:30:06 -05:00
libc zig provides shlwapi.lib for *-windows-gnu 2020-04-08 01:21:00 -04:00
libcxx zig c++: get it working with musl and mingw-w64 2020-03-27 12:38:52 -04:00
libcxxabi zig c++: get it working with musl and mingw-w64 2020-03-27 12:38:52 -04:00
libunwind update libunwind to llvm10.0.0rc2 2020-02-14 10:44:23 -05:00
std stage2: implement while loops (bool condition) 2020-08-13 20:32:32 -07:00