CS153/hw3/llprograms/call4.ll

16 lines
238 B
LLVM
Raw Normal View History

define i64 @bar(i64 %x, i64 %y) {
%1 = add i64 %x, %y
ret i64 %1
}
define i64 @foo(i64 %x) {
%1 = call i64 @bar(i64 %x, i64 %x)
ret i64 %1
}
define i64 @main(i64 %argc, i8** %arcv) {
%1 = call i64 @foo(i64 17)
ret i64 %1
}