Updated hw6 to a newer version

Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
Mariano Uvalle 2025-01-24 21:23:08 -08:00
parent 9224001a22
commit 0c04936ccf
356 changed files with 8408 additions and 4725 deletions

View file

@ -1,5 +1,9 @@
%fty = type i64 (i64, i64)
declare i64 @ll_callback(%fty*)
declare i8* @ll_ltoa(i64)
declare void @ll_puts(i8*)
define i64 @foo(i64 %x, i64 %y) {
%1 = alloca i64
%2 = add i64 %x, %y
@ -14,4 +18,3 @@ define i64 @main(i64 %argc, i8** %argv) {
call void @ll_puts(i8* %2)
ret i64 0
}