mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-16 07:28:52 +00:00
Add tests
This commit is contained in:
13
examples/ir3/typedef.ir
Normal file
13
examples/ir3/typedef.ir
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
fun i32 @main () {
|
||||
init:
|
||||
bid: b0
|
||||
allocations:
|
||||
%l0:i32:a
|
||||
|
||||
block b0:
|
||||
%b0:i0:unit = store 0:i32 %l0:*i32
|
||||
%b0:i1:unit = store 1:i32 %l0:*i32
|
||||
%b0:i2:i32 = load %l0:*i32
|
||||
ret %b0:i2:i32
|
||||
}
|
||||
Reference in New Issue
Block a user