Update ir examples

This commit is contained in:
Chunmyong Park
2020-06-14 12:58:28 +00:00
parent 1526873f41
commit 833f26b013
134 changed files with 298 additions and 10 deletions

View File

@@ -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