zig/src-self-hosted
Andrew Kelley d29dd5834b stage2: local consts
These are now supported enough that this example code hits the
limitations of the register allocator:

fn add(a: u32, b: u32) void {
    const c = a + b; // 7
    const d = a + c; // 10
    const e = d + b; // 14
    assert(e == 14);
}
// error: TODO implement copyToNewRegister

So now the next step is to implement register allocation as planned.
2020-07-15 22:36:35 -07:00
..
2020-07-15 22:36:35 -07:00
2020-07-15 22:36:35 -07:00
2020-07-15 22:36:35 -07:00
2020-07-13 00:28:11 -07:00
2019-12-29 11:04:58 +02:00
2020-07-15 22:36:35 -07:00
2020-06-24 20:28:52 -04:00
2020-02-16 13:25:30 -05:00
2020-07-15 22:36:35 -07:00