2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-06-18 19:03:41 -04:00
|
|
|
|
2020-06-29 21:58:34 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
2020-05-15 23:54:13 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
2020-07-07 14:55:44 -04:00
|
|
|
|
2020-05-16 15:44:20 -04:00
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-27 21:50:59 -04:00
|
|
|
|
|
|
|
|
|
2020-07-13 15:34:31 -07:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-07-07 14:55:44 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-23 19:53:32 -04:00
|
|
|
|
|
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
2020-06-24 20:28:52 -04:00
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-07 14:55:44 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-07 14:55:44 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-28 12:19:00 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-28 12:19:00 -04:00
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-23 19:53:32 -04:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-05-28 12:19:00 -04:00
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-28 12:19:00 -04:00
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-19 13:33:36 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
|
|
|
|
|
2020-05-28 12:19:00 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-28 12:19:00 -04:00
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-05-28 12:19:00 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 06:08:37 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-16 20:23:15 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-16 20:23:15 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
2020-06-24 20:28:52 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
2020-06-24 20:28:52 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-05-16 20:23:15 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-16 20:23:15 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-05-16 20:23:15 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 23:54:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-24 20:28:52 -04:00
|
|
|
|
2020-05-15 23:54:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-07 14:55:44 -04:00
|
|
|
|
2020-05-15 23:54:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-07 23:24:30 -04:00
|
|
|
|
2020-05-15 23:54:13 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 23:54:13 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 23:54:13 -04:00
|
|
|
|
|
|
|
|
|
2020-05-16 15:44:20 -04:00
|
|
|
|
|
|
|
|
|
2020-05-15 23:54:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-24 20:28:52 -04:00
|
|
|
|
2020-05-15 23:54:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-07 23:24:30 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-04 22:25:49 +00:00
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-07-04 22:25:49 +00:00
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-07-04 22:25:49 +00:00
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-07-04 22:25:49 +00:00
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-07-04 22:25:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-07-04 22:25:49 +00:00
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-07-04 22:25:49 +00:00
|
|
|
|
2020-07-13 15:34:31 -07:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-28 12:19:00 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-28 12:19:00 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-28 12:19:00 -04:00
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-07 14:55:44 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-18 19:03:41 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
2020-06-24 20:28:52 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-08 06:56:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-07 03:48:20 +00:00
|
|
|
|
2020-07-07 14:55:44 -04:00
|
|
|
|
2020-07-07 03:48:20 +00:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-06-05 15:49:23 -04:00
|
|
|
|
|
|
|
|
|
2020-07-07 03:48:20 +00:00
|
|
|
|
|
|
|
|
|
2020-06-05 15:49:23 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-05-16 15:44:20 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-04 22:25:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-07-04 22:25:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-04 22:25:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-04 22:25:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-08 15:15:55 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-29 21:58:34 -04:00
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-29 21:58:34 -04:00
|
|
|
|
2020-07-07 03:48:20 +00:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-09 15:38:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-07-09 15:38:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-24 20:28:52 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
2020-06-18 19:03:41 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
|
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
|
|
|
|
|
2020-07-11 22:04:38 +03:00
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-13 00:28:11 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-12 23:50:25 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
2020-07-04 01:58:35 -07:00
|
|
|
|
stage2 parser: split out PrefixOp into separate AST Nodes
This is part of a larger effort to improve the memory layout of AST
nodes of the self-hosted parser to reduce wasted memory. Reduction of
wasted memory also translates to improved performance because of fewer
memory allocations, and fewer cache misses.
Compared to master, when running `zig fmt` on the std lib:
* cache-misses: 801,829 => 768,624
* instructions: 3,234,877,167 => 3,232,075,022
* peak memory: 81480 KB => 75964 KB
2020-07-13 20:13:51 -07:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
stage2 parser: split out PrefixOp into separate AST Nodes
This is part of a larger effort to improve the memory layout of AST
nodes of the self-hosted parser to reduce wasted memory. Reduction of
wasted memory also translates to improved performance because of fewer
memory allocations, and fewer cache misses.
Compared to master, when running `zig fmt` on the std lib:
* cache-misses: 801,829 => 768,624
* instructions: 3,234,877,167 => 3,232,075,022
* peak memory: 81480 KB => 75964 KB
2020-07-13 20:13:51 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-04 01:58:35 -07:00
|
|
|
|
|
|
|
|
|
2020-07-09 15:38:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-04 01:58:35 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-08 07:04:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-14 02:24:12 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-08 07:04:43 +00:00
|
|
|
|
|
|
|
|
|
2020-07-14 02:24:12 -07:00
|
|
|
|
2020-07-08 07:04:43 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-04 01:58:35 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-14 02:24:12 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-14 02:24:12 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-23 19:53:32 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-06-23 19:53:32 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-23 19:53:32 -04:00
|
|
|
|
|
|
|
|
|
2020-06-19 20:52:06 +03:00
|
|
|
|
2020-06-23 19:53:32 -04:00
|
|
|
|
2020-06-19 20:52:06 +03:00
|
|
|
|
2020-06-23 19:53:32 -04:00
|
|
|
|
2020-06-19 20:52:06 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-06-23 19:53:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-19 20:52:06 +03:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-06-18 19:03:41 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-19 20:45:57 +03:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-06-19 20:45:57 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-04 02:27:12 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-19 20:45:57 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
2020-06-19 20:45:57 +03:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-28 12:19:00 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
2020-05-28 12:19:00 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
2020-05-28 12:19:00 -04:00
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-05-16 20:23:15 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-16 20:23:15 -04:00
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-06-18 19:03:41 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-26 04:36:17 -04:00
|
|
|
|
2020-06-27 21:10:44 -04:00
|
|
|
|
2020-06-26 04:36:17 -04:00
|
|
|
|
|
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-04 22:25:49 +00:00
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-26 04:03:54 -04:00
|
|
|
|
2020-06-26 04:36:17 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-26 04:03:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-04 22:25:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
2020-07-04 22:25:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-04 22:25:49 +00:00
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
|
|
|
|
|
2020-06-24 20:28:52 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-04 22:25:49 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-08 02:31:04 -04:00
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-28 22:43:11 -04:00
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-08 02:31:04 -04:00
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
|
|
|
|
|
2020-06-08 02:31:04 -04:00
|
|
|
|
2020-06-05 15:49:23 -04:00
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
|
|
|
|
|
2020-06-08 02:31:04 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-08 02:31:04 -04:00
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-04 22:25:49 +00:00
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-02 17:43:51 -04:00
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-07 14:55:44 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-27 07:16:59 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-27 07:16:59 -04:00
|
|
|
|
2020-06-27 21:50:59 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-18 19:03:41 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-06-17 04:38:15 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:38:15 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-06-05 15:49:23 -04:00
|
|
|
|
|
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
2020-06-05 15:49:23 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-05 15:49:23 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
2020-07-07 14:55:44 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
|
|
|
|
|
2020-07-04 22:25:49 +00:00
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-05-28 12:19:00 -04:00
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-28 12:19:00 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-05-28 12:19:00 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-24 20:28:52 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-26 03:15:12 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-05-28 12:19:00 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-04 22:25:49 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-07-04 22:25:49 +00:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-04 22:25:49 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-07-04 22:25:49 +00:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-27 21:50:59 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-26 03:17:13 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-26 03:17:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-27 21:50:59 -04:00
|
|
|
|
2020-06-27 07:16:59 -04:00
|
|
|
|
2020-06-27 21:39:39 -04:00
|
|
|
|
2020-06-26 03:17:13 -04:00
|
|
|
|
2020-06-27 21:50:59 -04:00
|
|
|
|
2020-07-13 15:34:31 -07:00
|
|
|
|
2020-07-04 22:25:49 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
|
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-05 15:49:23 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-23 19:53:32 -04:00
|
|
|
|
2020-06-03 21:53:13 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-06-23 19:53:32 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-08 06:56:20 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 09:21:57 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-13 20:47:47 -07:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-23 19:53:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-23 19:53:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-08 20:46:06 -07:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
2020-06-23 19:53:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-04 22:25:49 +00:00
|
|
|
|
2020-06-23 19:53:32 -04:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
2020-06-23 19:53:32 -04:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-05 15:49:23 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-12 23:50:25 -07:00
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-07 08:01:54 +00:00
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
2020-07-07 08:01:54 +00:00
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-08 20:33:33 -07:00
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
|
|
|
|
|
2020-06-23 19:53:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-23 19:53:32 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-06-03 21:53:13 -04:00
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-06-03 21:53:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
2020-06-03 21:53:13 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-23 19:53:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-07-08 06:56:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-03 21:53:13 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 09:21:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-04 01:58:35 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-04 01:58:35 -07:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-13 20:47:47 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-07-12 23:50:25 -07:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-08 06:56:20 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-12 23:04:00 -07:00
|
|
|
|
2020-07-07 08:01:54 +00:00
|
|
|
|
|
|
|
|
|
2020-07-12 23:04:00 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self-hosted: working towards conditional branching test case
New features:
* Functions can have parameters in semantic analysis. Codegen
is not implemented yet.
* Support for i8, i16, i32, i64, u8, u16, u32, u64 primitive
identifiers.
* New ZIR instructions: arg, block, and breakvoid
Implementation details:
* Move Module.Body to ir.Body
* Scope.Block gains a parent field and an optional Label field
* Fix bug in integer type equality comparison.
Here's the test case I'm working towards:
```
@void = primitive(void)
@i32 = primitive(i32)
@fnty = fntype([@i32, @i32], @void)
@0 = str("entry")
@1 = export(@0, "entry")
@entry = fn(@fnty, {
%0 = arg(0)
%1 = arg(1)
%2 = add(%0, %1)
%3 = int(7)
%4 = block("if", {
%neq = cmp(%2, neq, %3)
%5 = condbr(%neq, {
%6 = unreachable()
}, {
%7 = breakvoid("if")
})
})
%11 = returnvoid()
})
```
$ ./zig-cache/bin/zig build-obj test.zir
test.zir:9:12: error: TODO implement function parameters for Arch.x86_64
That's where I left off.
2020-06-26 02:25:09 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-11 14:09:04 +03:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-16 20:23:15 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-11 14:09:04 +03:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-11 14:09:04 +03:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-16 20:23:15 -04:00
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-16 20:23:15 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-28 21:15:08 -04:00
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-24 03:46:32 -04:00
|
|
|
|
2020-06-17 04:29:54 -04:00
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
2020-06-11 01:22:07 -04:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-11 14:09:04 +03:00
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-07-11 14:09:04 +03:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-07-06 06:10:44 +00:00
|
|
|
|
|
|
|
|
|
2020-05-15 21:44:33 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-06-23 23:29:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|