Files
cs420/examples/opt/return_void.ir
2022-05-23 13:33:01 +09:00

22 lines
210 B
Plaintext

fun unit @foo () {
init:
bid: b0
allocations:
block b0:
ret unit:unit
}
fun i32 @main () {
init:
bid: b0
allocations:
block b0:
%b0:i0:unit = call @foo:[ret:unit params:()]*()
ret 1:i32
}