Files
cs420/examples/opt/return_void.ir
2025-04-11 13:20:10 +09:00

22 lines
208 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
}