diff options
| author | Timon Kruiper <timonkruiper@gmail.com> | 2021-01-10 17:36:01 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-01-10 17:47:34 -0800 |
| commit | e1d8073d2fc0df6fbc5ce983312e3da374a9889b (patch) | |
| tree | 11d8c5aa24c3c09dfec529c2d9f150511623c7b9 /src/codegen/wasm.zig | |
| parent | 2117489e05ddf7cc4653feecbf47b3637276d6b6 (diff) | |
| download | zig-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/wasm.zig')
0 files changed, 0 insertions, 0 deletions
