diff options
| author | Timon Kruiper <timonkruiper@gmail.com> | 2020-12-29 20:09:08 +0100 |
|---|---|---|
| committer | Timon Kruiper <timonkruiper@gmail.com> | 2021-01-03 17:23:30 +0100 |
| commit | 19cfd310b0d5ba7d9542d50db281035b15daad35 (patch) | |
| tree | 21420f447be61d69549f283b055ae0641696711e /src/Cache.zig | |
| parent | a5dab15edea5a82a43481504637ed51655c51680 (diff) | |
| download | zig-19cfd310b0d5ba7d9542d50db281035b15daad35.tar.gz zig-19cfd310b0d5ba7d9542d50db281035b15daad35.zip | |
stage2: implement register allocation in LLVM self-hosted backend
A HashMap has been added which store the LLVM values used in a function.
Together with the alloc and store instructions the following now works:
```
export fn _start() noreturn {
var x: bool = true;
exit();
}
fn exit() noreturn {
unreachable;
}
```
Diffstat (limited to 'src/Cache.zig')
0 files changed, 0 insertions, 0 deletions
