aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/c.zig
diff options
context:
space:
mode:
authorTimon Kruiper <timonkruiper@gmail.com>2021-01-10 17:36:01 +0100
committerAndrew Kelley <andrew@ziglang.org>2021-01-10 17:47:34 -0800
commite1d8073d2fc0df6fbc5ce983312e3da374a9889b (patch)
tree11d8c5aa24c3c09dfec529c2d9f150511623c7b9 /src/codegen/c.zig
parent2117489e05ddf7cc4653feecbf47b3637276d6b6 (diff)
downloadzig-e1d8073d2fc0df6fbc5ce983312e3da374a9889b.tar.gz
zig-e1d8073d2fc0df6fbc5ce983312e3da374a9889b.zip
stage2: add support for loops in LLVM backend
A simple `while(true) {}` loop generates the following LLVMIR: ``` define i32 @main() { Entry: br label %Loop Loop: ; preds = %Loop, %Entry br label %Loop } ``` Also implement TZIR printing for loops and add a corresponding test.
Diffstat (limited to 'src/codegen/c.zig')
0 files changed, 0 insertions, 0 deletions