Files
llgo/cl/_testpy/math/out.ll

30 lines
923 B
LLVM
Raw Normal View History

2024-05-12 23:42:16 +08:00
; ModuleID = 'math'
source_filename = "math"
2024-05-11 15:12:42 +08:00
2024-05-12 12:14:26 +08:00
@__llgo_py.math.sqrt = external global ptr
2024-05-12 23:42:16 +08:00
@"math.init$guard" = global ptr null
2024-05-11 15:12:42 +08:00
@__llgo_py.math = linkonce global ptr null
@0 = private unnamed_addr constant [5 x i8] c"math\00", align 1
2024-05-12 23:42:16 +08:00
define void @math.init() {
2024-05-11 15:12:42 +08:00
_llgo_0:
2024-05-12 23:42:16 +08:00
%0 = load i1, ptr @"math.init$guard", align 1
2024-05-11 15:12:42 +08:00
br i1 %0, label %_llgo_2, label %_llgo_1
_llgo_1: ; preds = %_llgo_0
2024-05-12 23:42:16 +08:00
store i1 true, ptr @"math.init$guard", align 1
2024-05-11 15:12:42 +08:00
%1 = load ptr, ptr @__llgo_py.math, align 8
2024-05-13 00:45:41 +08:00
%2 = icmp ne ptr %1, null
br i1 %2, label %_llgo_2, label %_llgo_3
2024-05-11 15:12:42 +08:00
_llgo_2: ; preds = %_llgo_3, %_llgo_1, %_llgo_0
ret void
_llgo_3: ; preds = %_llgo_1
2024-05-13 00:45:41 +08:00
%3 = call ptr @PyImport_ImportModule(ptr @0)
store ptr %3, ptr @__llgo_py.math, align 8
2024-05-11 15:12:42 +08:00
br label %_llgo_2
}
declare ptr @PyImport_ImportModule(ptr)