github.com/goplus/llgo@v0.8.3/py/module.ll (about)

     1  ; ModuleID = '_pyg/module.c'
     2  source_filename = "_pyg/module.c"
     3  
     4  %struct.PyObject = type opaque
     5  
     6  ; Function Attrs: noinline nounwind optnone ssp uwtable(sync)
     7  define void @llgoLoadPyModSyms(%struct.PyObject* noundef %0, ...) #0 {
     8    %2 = alloca %struct.PyObject*, align 8
     9    %3 = alloca i8*, align 8
    10    %4 = alloca i8*, align 8
    11    %5 = alloca i8*, align 8
    12    %6 = alloca %struct.PyObject**, align 8
    13    %7 = alloca %struct.PyObject**, align 8
    14    store %struct.PyObject* %0, %struct.PyObject** %2, align 8
    15    %8 = bitcast i8** %3 to i8*
    16    call void @llvm.va_start(i8* %8)
    17    br label %9
    18  
    19  9:                                                ; preds = %26, %1
    20    %10 = va_arg i8** %3, i8*
    21    store i8* %10, i8** %5, align 8
    22    %11 = load i8*, i8** %5, align 8
    23    store i8* %11, i8** %4, align 8
    24    %12 = load i8*, i8** %4, align 8
    25    %13 = icmp eq i8* %12, null
    26    br i1 %13, label %14, label %15
    27  
    28  14:                                               ; preds = %9
    29    br label %27
    30  
    31  15:                                               ; preds = %9
    32    %16 = va_arg i8** %3, %struct.PyObject**
    33    store %struct.PyObject** %16, %struct.PyObject*** %7, align 8
    34    %17 = load %struct.PyObject**, %struct.PyObject*** %7, align 8
    35    store %struct.PyObject** %17, %struct.PyObject*** %6, align 8
    36    %18 = load %struct.PyObject**, %struct.PyObject*** %6, align 8
    37    %19 = load %struct.PyObject*, %struct.PyObject** %18, align 8
    38    %20 = icmp eq %struct.PyObject* %19, null
    39    br i1 %20, label %21, label %26
    40  
    41  21:                                               ; preds = %15
    42    %22 = load %struct.PyObject*, %struct.PyObject** %2, align 8
    43    %23 = load i8*, i8** %4, align 8
    44    %24 = call %struct.PyObject* @PyObject_GetAttrString(%struct.PyObject* noundef %22, i8* noundef %23)
    45    %25 = load %struct.PyObject**, %struct.PyObject*** %6, align 8
    46    store %struct.PyObject* %24, %struct.PyObject** %25, align 8
    47    br label %26
    48  
    49  26:                                               ; preds = %21, %15
    50    br label %9
    51  
    52  27:                                               ; preds = %14
    53    %28 = bitcast i8** %3 to i8*
    54    call void @llvm.va_end(i8* %28)
    55    ret void
    56  }
    57  
    58  ; Function Attrs: nocallback nofree nosync nounwind willreturn
    59  declare void @llvm.va_start(i8*) #1
    60  
    61  declare %struct.PyObject* @PyObject_GetAttrString(%struct.PyObject* noundef, i8* noundef) #2
    62  
    63  ; Function Attrs: nocallback nofree nosync nounwind willreturn
    64  declare void @llvm.va_end(i8*) #1
    65  
    66  attributes #0 = { noinline nounwind optnone ssp uwtable(sync) "frame-pointer"="non-leaf" "min-legal-vector-width"="0" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+crc,+crypto,+dotprod,+fp-armv8,+fp16fml,+fullfp16,+lse,+neon,+ras,+rcpc,+rdm,+sha2,+sha3,+sm4,+v8.5a,+zcm,+zcz" }
    67  attributes #1 = { nocallback nofree nosync nounwind willreturn }
    68  attributes #2 = { "frame-pointer"="non-leaf" "no-trapping-math"="true" "probe-stack"="__chkstk_darwin" "stack-protector-buffer-size"="8" "target-cpu"="apple-m1" "target-features"="+aes,+crc,+crypto,+dotprod,+fp-armv8,+fp16fml,+fullfp16,+lse,+neon,+ras,+rcpc,+rdm,+sha2,+sha3,+sm4,+v8.5a,+zcm,+zcz" }
    69  
    70  !llvm.module.flags = !{!0, !1, !2, !3, !4, !5, !6, !7, !8}
    71  !llvm.ident = !{!9}
    72  
    73  !0 = !{i32 2, !"SDK Version", [2 x i32] [i32 13, i32 3]}
    74  !1 = !{i32 1, !"wchar_size", i32 4}
    75  !2 = !{i32 8, !"branch-target-enforcement", i32 0}
    76  !3 = !{i32 8, !"sign-return-address", i32 0}
    77  !4 = !{i32 8, !"sign-return-address-all", i32 0}
    78  !5 = !{i32 8, !"sign-return-address-with-bkey", i32 0}
    79  !6 = !{i32 7, !"PIC Level", i32 2}
    80  !7 = !{i32 7, !"uwtable", i32 1}
    81  !8 = !{i32 7, !"frame-pointer", i32 1}
    82  !9 = !{!"Apple clang version 14.0.3 (clang-1403.0.22.14.1)"}