Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei committed Jun 19, 2024
1 parent 607deaa commit 1566a83
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cl/_testrt/strlen/out.ll
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ _llgo_0:

_llgo_1: ; preds = %_llgo_0
store i1 true, ptr @"main.init$guard", align 1
call void @syscall.init()
store i8 72, ptr @main.format, align 1
store i8 101, ptr getelementptr inbounds (i8, ptr @main.format, i64 1), align 1
store i8 108, ptr getelementptr inbounds (i8, ptr @main.format, i64 2), align 1
Expand Down Expand Up @@ -40,6 +41,8 @@ _llgo_0:
ret i32 0
}

declare void @syscall.init()

declare void @"github.com/goplus/llgo/internal/runtime.init"()

declare i32 @strlen(ptr)
Expand Down
3 changes: 3 additions & 0 deletions cl/_testrt/struct/out.ll
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ _llgo_0:

_llgo_1: ; preds = %_llgo_0
store i1 true, ptr @"main.init$guard", align 1
call void @syscall.init()
store i8 72, ptr @main.format, align 1
store i8 101, ptr getelementptr inbounds (i8, ptr @main.format, i64 1), align 1
store i8 108, ptr getelementptr inbounds (i8, ptr @main.format, i64 2), align 1
Expand Down Expand Up @@ -78,4 +79,6 @@ declare ptr @"github.com/goplus/llgo/internal/runtime.Zeroinit"(ptr, i64)

declare void @printf(ptr, ...)

declare void @syscall.init()

declare void @"github.com/goplus/llgo/internal/runtime.init"()
3 changes: 3 additions & 0 deletions cl/_testrt/typalias/out.ll
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ _llgo_0:

_llgo_1: ; preds = %_llgo_0
store i1 true, ptr @"main.init$guard", align 1
call void @syscall.init()
store i8 72, ptr @main.format, align 1
store i8 101, ptr getelementptr inbounds (i8, ptr @main.format, i64 1), align 1
store i8 108, ptr getelementptr inbounds (i8, ptr @main.format, i64 2), align 1
Expand Down Expand Up @@ -62,6 +63,8 @@ _llgo_0:

declare void @printf(ptr, ...)

declare void @syscall.init()

declare void @"github.com/goplus/llgo/internal/runtime.init"()

declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64)

0 comments on commit 1566a83

Please sign in to comment.