github.com/goplus/llgo@v0.8.3/cl/_testdata/printf/out.ll (about) 1 ; ModuleID = 'main' 2 source_filename = "main" 3 4 @main.hello = global [7 x i8] undef 5 @"main.init$guard" = global ptr null 6 @__llgo_argc = global ptr null 7 @__llgo_argv = global ptr null 8 9 define void @main.init() { 10 _llgo_0: 11 %0 = load i1, ptr @"main.init$guard", align 1 12 br i1 %0, label %_llgo_2, label %_llgo_1 13 14 _llgo_1: ; preds = %_llgo_0 15 store i1 true, ptr @"main.init$guard", align 1 16 store i8 72, ptr @main.hello, align 1 17 store i8 101, ptr getelementptr inbounds (i8, ptr @main.hello, i64 1), align 1 18 store i8 108, ptr getelementptr inbounds (i8, ptr @main.hello, i64 2), align 1 19 store i8 108, ptr getelementptr inbounds (i8, ptr @main.hello, i64 3), align 1 20 store i8 111, ptr getelementptr inbounds (i8, ptr @main.hello, i64 4), align 1 21 store i8 10, ptr getelementptr inbounds (i8, ptr @main.hello, i64 5), align 1 22 store i8 0, ptr getelementptr inbounds (i8, ptr @main.hello, i64 6), 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 (ptr, ...) @printf(ptr @main.hello) 36 ret i32 0 37 } 38 39 declare void @"github.com/goplus/llgo/internal/runtime.init"() 40 41 declare void @printf(ptr, ...)