3 %async_func_ptr = type <{ i32, i32 }>
5 %swift.context = type { ptr, ptr, i64 }
6 %swift.type = type { i64 }
7 %FlatMapSeq = type <{}>
8 %swift.error = type opaque
9 %swift.opaque = type opaque
11 @repoTU = global %async_func_ptr <{ i32 trunc (i64 sub (i64 ptrtoint (ptr @repo to i64), i64 ptrtoint (ptr @repoTU to i64)) to i32), i32 20 }>, section "__TEXT,__const", align 8
13 ; Function Attrs: nounwind
14 declare token @llvm.coro.id.async(i32, i32, i32, ptr) #0
16 ; Function Attrs: nounwind
17 declare ptr @llvm.coro.begin(token, ptr writeonly) #0
19 ; Function Attrs: nounwind
20 declare ptr @llvm.coro.async.resume() #0
22 define hidden ptr @__swift_async_resume_project_context(ptr %0) {
27 define swifttailcc void @repo(ptr %0, ptr %1, ptr %arg, ptr %2) #1 {
29 %swifterror = alloca swifterror ptr, align 8
30 %3 = call token @llvm.coro.id.async(i32 20, i32 16, i32 1, ptr @repoTU)
31 %4 = call ptr @llvm.coro.begin(token %3, ptr null)
32 %5 = bitcast ptr undef to ptr
35 6: ; preds = %21, %15, %entry
36 br i1 undef, label %7, label %23
39 br i1 undef, label %8, label %16
42 %initializeWithTake35 = bitcast ptr undef to ptr
43 %9 = call ptr %initializeWithTake35(ptr noalias %5, ptr noalias undef, ptr undef) #0
44 %10 = call ptr @llvm.coro.async.resume()
45 %11 = bitcast ptr %10 to ptr
46 %12 = call { ptr, ptr } (i32, ptr, ptr, ...) @llvm.coro.suspend.async.sl_p0i8p0s_swift.error.4.220.413.429.445.461.672.683ss(i32 256, ptr %10, ptr @__swift_async_resume_project_context, ptr @__swift_suspend_dispatch_5.23, ptr undef, ptr undef, ptr undef, ptr %5, ptr undef, ptr undef)
47 br i1 undef, label %25, label %13
50 br i1 undef, label %14, label %15
59 br i1 undef, label %26, label %17
62 br i1 undef, label %18, label %22
65 br i1 undef, label %27, label %19
68 br i1 undef, label %20, label %21
82 24: ; preds = %23, %22, %20, %14
94 28: ; preds = %27, %26, %25
98 define dso_local swifttailcc void @__swift_suspend_dispatch_2.18() {
103 define dso_local swifttailcc void @__swift_suspend_dispatch_5.19() {
108 define dso_local swifttailcc void @__swift_suspend_dispatch_2.20() {
113 define dso_local swifttailcc void @__swift_suspend_dispatch_4.21() {
118 define dso_local swifttailcc void @__swift_suspend_dispatch_5.22() {
123 define dso_local swifttailcc void @__swift_suspend_dispatch_5.23(ptr %0, ptr %1, ptr %2, ptr %3, ptr %4, ptr %5) {
128 ; Function Attrs: nounwind
129 declare { ptr, ptr } @llvm.coro.suspend.async.sl_p0i8p0s_swift.error.4.220.413.429.445.461.672.683ss(i32, ptr, ptr, ...) #0
131 attributes #0 = { nounwind }
132 attributes #1 = { "tune-cpu"="generic" }
134 !llvm.linker.options = !{!0}