github.com/goplus/llgo@v0.8.3/cl/_testrt/linkname/out.ll (about) 1 ; ModuleID = 'main' 2 source_filename = "main" 3 4 @"main.init$guard" = global ptr null 5 @__llgo_argc = global ptr null 6 @__llgo_argv = global ptr null 7 @0 = private unnamed_addr constant [2 x i8] c"a\00", align 1 8 @1 = private unnamed_addr constant [2 x i8] c"b\00", align 1 9 @2 = private unnamed_addr constant [2 x i8] c"c\00", align 1 10 @3 = private unnamed_addr constant [2 x i8] c"d\00", align 1 11 @4 = private unnamed_addr constant [2 x i8] c"1\00", align 1 12 @5 = private unnamed_addr constant [2 x i8] c"2\00", align 1 13 @6 = private unnamed_addr constant [2 x i8] c"3\00", align 1 14 @7 = private unnamed_addr constant [2 x i8] c"4\00", align 1 15 16 define void @main.init() { 17 _llgo_0: 18 %0 = load i1, ptr @"main.init$guard", align 1 19 br i1 %0, label %_llgo_2, label %_llgo_1 20 21 _llgo_1: ; preds = %_llgo_0 22 store i1 true, ptr @"main.init$guard", align 1 23 br label %_llgo_2 24 25 _llgo_2: ; preds = %_llgo_1, %_llgo_0 26 ret void 27 } 28 29 define i32 @main(i32 %0, ptr %1) { 30 _llgo_0: 31 store i32 %0, ptr @__llgo_argc, align 4 32 store ptr %1, ptr @__llgo_argv, align 8 33 call void @"github.com/goplus/llgo/internal/runtime.init"() 34 call void @main.init() 35 call void @"github.com/goplus/llgo/cl/internal/linktarget.F"(ptr @0, ptr @1, ptr @2, ptr @3) 36 call void @"github.com/goplus/llgo/cl/internal/linktarget.F"(ptr @4, ptr @5, ptr @6, ptr @7) 37 ret i32 0 38 } 39 40 declare void @"github.com/goplus/llgo/cl/internal/linktarget.F"(ptr, ptr, ptr, ptr) 41 42 declare void @"github.com/goplus/llgo/internal/runtime.init"()