31
31
; CHECK: entry:
32
32
; CHECK: %j = alloca i32, align 4
33
33
; CHECK: call void @llvm.dbg.declare(metadata ptr %j, metadata ![[JVAR:[0-9]+]], metadata !DIExpression()), !dbg ![[JDBGLOC:[0-9]+]]
34
- ; CHECK: %[[MEMORY:.*]] = call ptr @new({{.+}}), !dbg ![[IDBGLOC:[0-9]+]]
35
- ; CHECK: call void @llvm.dbg.declare(metadata ptr %[[MEMORY]], metadata ![[XVAR:[0-9]+]], metadata !DIExpression(DW_OP_plus_uconst, 32)), !dbg ![[IDBGLOC]]
34
+ ; CHECK: %[[MEMORY:.*]] = call ptr @new
35
+ ; CHECK: call void @llvm.dbg.declare(metadata ptr %[[MEMORY]], metadata ![[XVAR:[0-9]+]], metadata !DIExpression(DW_OP_plus_uconst, 32)), !dbg ![[IDBGLOC:[0-9]+ ]]
36
36
; CHECK: call void @llvm.dbg.declare(metadata ptr %[[MEMORY]], metadata ![[IVAR:[0-9]+]], metadata !DIExpression(DW_OP_plus_uconst, 20)), !dbg ![[IDBGLOC]]
37
37
; CHECK: await.ready:
38
38
;
48
48
; CHECK: await.ready:
49
49
;
50
50
; CHECK-DAG: ![[IVAR]] = !DILocalVariable(name: "i"
51
- ; CHECK-DAG: ![[PROG_SCOPE:[0-9]+]] = distinct !DISubprogram(name: "foo", linkageName: "_Z3foov"
52
- ; CHECK-DAG: ![[BLK_SCOPE:[0-9]+]] = distinct !DILexicalBlock(scope: ![[PROG_SCOPE]], file: !1, line: 23, column: 12)
53
- ; CHECK-DAG: ![[IDBGLOC]] = !DILocation(line: 23, column: 6, scope: ![[PROG_SCOPE]])
51
+ ; CHECK-DAG: ![[SCOPE:[0-9]+]] = distinct !DILexicalBlock(scope: !6, file: !1, line: 23, column: 12)
52
+ ; CHECK-DAG: ![[IDBGLOC]] = !DILocation(line: 24, column: 7, scope: ![[SCOPE]])
54
53
; CHECK-DAG: ![[XVAR]] = !DILocalVariable(name: "x"
55
54
; CHECK-DAG: ![[JVAR]] = !DILocalVariable(name: "j"
56
- ; CHECK-DAG: ![[JDBGLOC]] = !DILocation(line: 32, column: 7, scope: ![[BLK_SCOPE ]])
55
+ ; CHECK-DAG: ![[JDBGLOC]] = !DILocation(line: 32, column: 7, scope: ![[SCOPE ]])
57
56
58
57
; CHECK-DAG: ![[XVAR_RESUME]] = !DILocalVariable(name: "x"
59
- ; CHECK-DAG: ![[RESUME_PROG_SCOPE:[0-9]+]] = distinct !DISubprogram(name: "foo", linkageName: "_Z3foov"
60
- ; CHECK-DAG: ![[IDBGLOC_RESUME]] = !DILocation(line: 24, column: 7, scope: ![[RESUME_BLK_SCOPE:[0-9]+]])
61
- ; CHECK-DAG: ![[RESUME_BLK_SCOPE]] = distinct !DILexicalBlock(scope: ![[RESUME_PROG_SCOPE]], file: !1, line: 23, column: 12)
58
+ ; CHECK-DAG: ![[IDBGLOC_RESUME]] = !DILocation(line: 24, column: 7, scope: ![[RESUME_SCOPE:[0-9]+]])
59
+ ; CHECK-DAG: ![[RESUME_SCOPE]] = distinct !DILexicalBlock(scope: !22, file: !1, line: 23, column: 12)
62
60
; CHECK-DAG: ![[IVAR_RESUME]] = !DILocalVariable(name: "i"
63
61
; CHECK-DAG: ![[JVAR_RESUME]] = !DILocalVariable(name: "j"
64
- ; CHECK-DAG: ![[JDBGLOC_RESUME]] = !DILocation(line: 32, column: 7, scope: ![[RESUME_BLK_SCOPE ]])
62
+ ; CHECK-DAG: ![[JDBGLOC_RESUME]] = !DILocation(line: 32, column: 7, scope: ![[RESUME_SCOPE ]])
65
63
define void @f () presplitcoroutine !dbg !8 {
66
64
entry:
67
65
%__promise = alloca i8 , align 8
@@ -73,13 +71,13 @@ entry:
73
71
br i1 %alloc , label %coro.alloc , label %coro.init
74
72
75
73
coro.alloc: ; preds = %entry
76
- %size = call i64 @llvm.coro.size.i64 (), !dbg !23
77
- %memory = call ptr @new (i64 %size ), !dbg !23
78
- br label %coro.init , !dbg !23
74
+ %size = call i64 @llvm.coro.size.i64 ()
75
+ %memory = call ptr @new (i64 %size )
76
+ br label %coro.init
79
77
80
78
coro.init: ; preds = %coro.alloc, %entry
81
- %phi.entry.alloc = phi ptr [ null , %entry ], [ %memory , %coro.alloc ], !dbg !23
82
- %begin = call ptr @llvm.coro.begin (token %id , ptr %phi.entry.alloc ), !dbg !23
79
+ %phi.entry.alloc = phi ptr [ null , %entry ], [ %memory , %coro.alloc ]
80
+ %begin = call ptr @llvm.coro.begin (token %id , ptr %phi.entry.alloc )
83
81
%ready = call i1 @await_ready ()
84
82
br i1 %ready , label %init.ready , label %init.suspend
85
83
@@ -241,4 +239,3 @@ declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg)
241
239
!20 = !DILocation (line: 43 , column: 3 , scope: !7 )
242
240
!21 = !DILocation (line: 43 , column: 8 , scope: !7 )
243
241
!22 = distinct !DILexicalBlock (scope: !8 , file: !1 , line: 23 , column: 12 )
244
- !23 = !DILocation (line: 23 , column: 6 , scope: !8 )
0 commit comments