github.com/goplus/llgo@v0.8.3/cl/_testrt/map/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 [10 x i8] c"Hello %d\0A\00", align 1
     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    br label %_llgo_2
    17  
    18  _llgo_2:                                          ; preds = %_llgo_1, %_llgo_0
    19    ret void
    20  }
    21  
    22  define i32 @main(i32 %0, ptr %1) {
    23  _llgo_0:
    24    store i32 %0, ptr @__llgo_argc, align 4
    25    store ptr %1, ptr @__llgo_argv, align 8
    26    call void @"github.com/goplus/llgo/internal/runtime.init"()
    27    call void @main.init()
    28    %2 = call ptr @"github.com/goplus/llgo/internal/runtime.MakeSmallMap"()
    29    %3 = call i32 (ptr, ...) @printf(ptr @0, <null operand!>)
    30    ret i32 0
    31  }
    32  
    33  declare void @"github.com/goplus/llgo/internal/runtime.init"()
    34  
    35  declare ptr @"github.com/goplus/llgo/internal/runtime.MakeSmallMap"()
    36  
    37  declare i32 @printf(ptr, ...)