mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 23:18:48 +00:00
Update ir examples
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
struct Big : { m1:struct Sub, m2:struct Sub, m3:struct Sub }
|
||||
struct Sub : { m1:i64, m2:i64, m3:i64, m4:i64 }
|
||||
struct Big : { m1:struct Sub, m2:struct Sub, m3:struct Sub }
|
||||
|
||||
fun struct Big @foo (struct Big) {
|
||||
init:
|
||||
@@ -8,6 +8,7 @@ init:
|
||||
%l0:struct Big:r
|
||||
|
||||
block b0:
|
||||
%b0:p0:struct Big:p1
|
||||
%b0:i0:unit = store %b0:p0:struct Big %l0:struct Big*
|
||||
%b0:i1:struct Sub* = getelementptr %l0:struct Big* offset 0:i64
|
||||
%b0:i2:i64* = getelementptr %b0:i1:struct Sub* offset 0:i64
|
||||
|
||||
Reference in New Issue
Block a user