Add all the assignment code.

Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
Mariano Uvalle 2025-01-24 18:59:28 -08:00
parent 58c6b1f81c
commit cfe502c598
1277 changed files with 48709 additions and 1 deletions

11
hw6/llprograms/gep8.ll Normal file
View file

@ -0,0 +1,11 @@
%struct = type { i64, [5 x i64], i64 }
@gbl = global %struct { i64 1, [5 x i64] [ i64 2, i64 3, i64 4, i64 5, i64 6 ], i64 7 }
define i64 @main(i64 %argc, i8** %arcv) {
%1 = add i64 0, 0
%2 = getelementptr %struct, %struct* @gbl, i32 0, i32 1, i64 %1
%3 = load i64, i64* %2
ret i64 %3
}