github.com/goplus/llgo@v0.8.3/cl/_testrt/alloca/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 [4 x i8] c"Hi\0A\00", align 1 8 @1 = private unnamed_addr constant [3 x i8] c"%s\00", align 1 9 10 define void @main.init() { 11 _llgo_0: 12 %0 = load i1, ptr @"main.init$guard", align 1 13 br i1 %0, label %_llgo_2, label %_llgo_1 14 15 _llgo_1: ; preds = %_llgo_0 16 store i1 true, ptr @"main.init$guard", align 1 17 br label %_llgo_2 18 19 _llgo_2: ; preds = %_llgo_1, %_llgo_0 20 ret void 21 } 22 23 define i32 @main(i32 %0, ptr %1) { 24 _llgo_0: 25 store i32 %0, ptr @__llgo_argc, align 4 26 store ptr %1, ptr @__llgo_argv, align 8 27 call void @"github.com/goplus/llgo/internal/runtime.init"() 28 call void @main.init() 29 %2 = alloca i8, i64 4, align 1 30 %3 = call ptr @memcpy(ptr %2, ptr @0, i64 4) 31 %4 = call i32 (ptr, ...) @printf(ptr @1, ptr %2) 32 ret i32 0 33 } 34 35 declare void @"github.com/goplus/llgo/internal/runtime.init"() 36 37 declare ptr @memcpy(ptr, ptr, i64) 38 39 declare i32 @printf(ptr, ...)