28
28
%4 = load i32 , ptr getelementptr inbounds (%swift.async_func_pointer , ptr @"$s3foo1fyyYaFTu" , i32 0 , i32 1 ), align 8 , !dbg !10
29
29
%5 = zext i32 %4 to i64 , !dbg !10
30
30
%6 = call swiftcc ptr @swift_task_alloc (i64 %5 ), !dbg !10
31
- call void @llvm.lifetime.start.p0 (i64 -1 , ptr %6 ), !dbg !10
32
31
%7 = load ptr , ptr %1 , align 8 , !dbg !10
33
32
%8 = getelementptr inbounds <{ ptr , ptr }>, ptr %6 , i32 0 , i32 0 , !dbg !10
34
33
store ptr %7 , ptr %8 , align 8 , !dbg !10
40
39
%13 = call ptr @__swift_async_resume_project_context (ptr %12 ), !dbg !10
41
40
store ptr %13 , ptr %1 , align 8 , !dbg !10
42
41
call swiftcc void @swift_task_dealloc (ptr %6 ), !dbg !10
43
- call void @llvm.lifetime.end.p0 (i64 -1 , ptr %6 ), !dbg !10
44
42
%14 = load ptr , ptr %1 , align 8 , !dbg !11
45
43
%15 = getelementptr inbounds <{ ptr , ptr }>, ptr %14 , i32 0 , i32 1 , !dbg !11
46
44
%16 = load ptr , ptr %15 , align 8 , !dbg !11
@@ -52,21 +50,15 @@ entry:
52
50
; Function Attrs: nounwind
53
51
declare token @llvm.coro.id.async (i32 , i32 , i32 , ptr ) #0
54
52
55
- ; Function Attrs: cold noreturn nounwind memory(inaccessiblemem: write)
56
- declare void @llvm.trap () #1
57
-
58
53
; Function Attrs: nounwind
59
54
declare ptr @llvm.coro.begin (token, ptr writeonly ) #0
60
55
61
56
declare swifttailcc void @"$s3foo1fyyYaF" (ptr swiftasync)
62
57
63
58
declare swiftcc ptr @swift_task_alloc (i64 )
64
59
65
- ; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
66
- declare void @llvm.lifetime.start.p0 (i64 immarg, ptr nocapture ) #2
67
-
68
60
; Function Attrs: nomerge nounwind
69
- declare ptr @llvm.coro.async.resume () #3
61
+ declare ptr @llvm.coro.async.resume () #1
70
62
71
63
define linkonce_odr hidden ptr @__swift_async_resume_project_context (ptr %0 ) !dbg !12 {
72
64
entry:
@@ -86,13 +78,10 @@ entry:
86
78
}
87
79
88
80
; Function Attrs: nomerge nounwind
89
- declare { ptr } @llvm.coro.suspend.async.sl_p0s (i32 , ptr , ptr , ...) #3
81
+ declare { ptr } @llvm.coro.suspend.async.sl_p0s (i32 , ptr , ptr , ...) #1
90
82
91
83
declare swiftcc void @swift_task_dealloc (ptr )
92
84
93
- ; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
94
- declare void @llvm.lifetime.end.p0 (i64 immarg, ptr nocapture ) #2
95
-
96
85
define internal swifttailcc void @"$s3foo3FooO3baryyYaF.0.1" (ptr %0 , ptr %1 ) !dbg !17 {
97
86
entry:
98
87
musttail call swifttailcc void %0 (ptr swiftasync %1 ), !dbg !18
@@ -103,9 +92,7 @@ entry:
103
92
declare i1 @llvm.coro.end.async (ptr , i1 , ...) #0
104
93
105
94
attributes #0 = { nounwind }
106
- attributes #1 = { cold noreturn nounwind memory(inaccessiblemem: write) }
107
- attributes #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
108
- attributes #3 = { nomerge nounwind }
95
+ attributes #1 = { nomerge nounwind }
109
96
110
97
!llvm.dbg.cu = !{!0 }
111
98
!llvm.module.flags = !{!3 , !4 }
0 commit comments