github.com/goplus/llgo@v0.8.3/cl/_testrt/gotypes/out.ll (about)

     1  ; ModuleID = 'main'
     2  source_filename = "main"
     3  
     4  %"github.com/goplus/llgo/internal/runtime.iface" = type { ptr, ptr }
     5  
     6  @"main.init$guard" = global ptr null
     7  @__llgo_argc = global ptr null
     8  @__llgo_argv = global ptr null
     9  
    10  define void @main.foo(%"github.com/goplus/llgo/internal/runtime.iface" %0) {
    11  _llgo_0:
    12    ret void
    13  }
    14  
    15  define void @main.init() {
    16  _llgo_0:
    17    %0 = load i1, ptr @"main.init$guard", align 1
    18    br i1 %0, label %_llgo_2, label %_llgo_1
    19  
    20  _llgo_1:                                          ; preds = %_llgo_0
    21    store i1 true, ptr @"main.init$guard", align 1
    22    br label %_llgo_2
    23  
    24  _llgo_2:                                          ; preds = %_llgo_1, %_llgo_0
    25    ret void
    26  }
    27  
    28  define i32 @main(i32 %0, ptr %1) {
    29  _llgo_0:
    30    store i32 %0, ptr @__llgo_argc, align 4
    31    store ptr %1, ptr @__llgo_argv, align 8
    32    call void @"github.com/goplus/llgo/internal/runtime.init"()
    33    call void @main.init()
    34    call void @main.foo(%"github.com/goplus/llgo/internal/runtime.iface" zeroinitializer)
    35    ret i32 0
    36  }
    37  
    38  declare void @"github.com/goplus/llgo/internal/runtime.init"()