Add all the assignment code.
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
This commit is contained in:
parent
58c6b1f81c
commit
cfe502c598
1277 changed files with 48709 additions and 1 deletions
13
hw3/llprograms/qtree.ll
Normal file
13
hw3/llprograms/qtree.ll
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
%vec = type [2 x i64]
|
||||
%centroid = type { i64, %vec }
|
||||
%qtree = type { %centroid, [4 x %qtree*] }
|
||||
%qtrees = type [1 x %qtree]
|
||||
|
||||
@gbl = global %qtrees [ %qtree { %centroid { i64 1, %vec [ i64 2, i64 3 ] }, [4 x %qtree*] [ %qtree* null, %qtree* null, %qtree* null, %qtree* null ] } ]
|
||||
|
||||
define i64 @main(i64 %argc, i8** %argv) {
|
||||
%1 = getelementptr %qtrees, %qtrees* @gbl, i32 0, i32 0, i32 0, i32 1, i32 1
|
||||
%2 = load i64, i64* %1
|
||||
ret i64 %2
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue