diff options
| author | Timon Kruiper <timonkruiper@gmail.com> | 2020-12-29 20:39:58 +0100 |
|---|---|---|
| committer | Timon Kruiper <timonkruiper@gmail.com> | 2021-01-03 17:23:30 +0100 |
| commit | da545d6a3195c1cafca498d8a695082982f74676 (patch) | |
| tree | c85dc18ef61eee7982c98ddd80c81223a25f69db /src/Compilation.zig | |
| parent | 47a4d43e41b07b939b840fbf8230b89e27694093 (diff) | |
| download | zig-da545d6a3195c1cafca498d8a695082982f74676.tar.gz zig-da545d6a3195c1cafca498d8a695082982f74676.zip | |
stage2: implement argument passing and returning in LLVM backend
Furthermore add the Not instruction.
The following now works:
```
export fn _start() noreturn {
var x: bool = true;
var other: bool = foo(x);
exit();
}
fn foo(cond: bool) bool {
return !cond;
}
fn exit() noreturn {
unreachable;
}
```
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions
