blob: d8b94b3707a627f783969067fc059b6e9b60b210 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
declare void @print_i32(i32)
define i32 @sum(i32 %a, i32 %b) {
%c = sub i32 %a, %b
ret i32 %c
}
define i32 @main() {
%a = call i32 @sum(i32 54, i32 2)
call void @print_i32(i32 %a)
ret i32 0
}
|