@@ -20,34 +20,36 @@ struct S2 {
20
20
sil_global hidden @globalKlass : $Klass
21
21
sil_global hidden @globalStruct : $S2
22
22
23
- // CHECK-LABEL: begin running test 1 of 2 on testRefElement: accesspath-base with: @trace[0]
23
+ // CHECK-LABEL: begin running test 1 of 2 on testRefElement: accesspath with: @trace[0]
24
24
// CHECK: [[P1:%.*]] = ref_element_addr %0 : $Klass, #Klass.f
25
25
// CHECK: [[A1:%.*]] = begin_access [read] [dynamic] [[P1]] : $*S
26
26
// CHECK: [[P2:%.*]] = ref_element_addr %0 : $Klass, #Klass.f
27
27
// CHECK: [[A2:%.*]] = begin_access [read] [dynamic] [[P2]] : $*S
28
- // CHECK: Access path base: [[P1]] = ref_element_addr %0 : $Klass, #Klass.f
28
+ // CHECK: Access path for: [[P1]] = ref_element_addr %0 : $Klass, #Klass.f
29
+ // CHECK-NEXT: base: [[P1]] = ref_element_addr %0 : $Klass, #Klass.f
29
30
// CHECK-NEXT: Exact Use: %{{.*}} = load [trivial] [[A1]] : $*S
30
31
// CHECK-NEXT: Exact Use: end_access [[A1]] : $*S
31
- // CHECK: end running test 1 of 2 on testRefElement: accesspath-base with: @trace[0]
32
+ // CHECK: end running test 1 of 2 on testRefElement: accesspath with: @trace[0]
32
33
33
- // CHECK-LABEL: begin running test 2 of 2 on testRefElement: accesspath-base with: @trace[1]
34
+ // CHECK-LABEL: begin running test 2 of 2 on testRefElement: accesspath with: @trace[1]
34
35
// CHECK: [[P1:%.*]] = ref_element_addr %0 : $Klass, #Klass.f
35
36
// CHECK: [[A1:%.*]] = begin_access [read] [dynamic] [[P1]] : $*S
36
37
// CHECK: [[P2:%.*]] = ref_element_addr %0 : $Klass, #Klass.f
37
38
// CHECK: [[A2:%.*]] = begin_access [read] [dynamic] [[P2]] : $*S
38
- // CHECK: Access path base: [[P2]] = ref_element_addr %0 : $Klass, #Klass.f
39
+ // CHECK: Access path for: [[P2]] = ref_element_addr %0 : $Klass, #Klass.f
40
+ // CHECK: base: [[P2]] = ref_element_addr %0 : $Klass, #Klass.f
39
41
// CHECK-NEXT: Exact Use: %{{.*}} = load [trivial] [[A2]] : $*S
40
42
// CHECK-NEXT: Exact Use: end_access [[A2]] : $*S
41
- // CHECK: end running test 2 of 2 on testRefElement: accesspath-base with: @trace[1]
43
+ // CHECK: end running test 2 of 2 on testRefElement: accesspath with: @trace[1]
42
44
sil hidden [ossa] @testRefElement : $@convention(thin) (@guaranteed Klass) -> () {
43
45
bb0(%0 : @guaranteed $Klass):
44
- specify_test "accesspath-base @trace[0]"
46
+ specify_test "accesspath @trace[0]"
45
47
%p1 = ref_element_addr %0 : $Klass, #Klass.f
46
48
debug_value [trace] %p1 : $*S
47
49
%a1 = begin_access [read] [dynamic] %p1 : $*S
48
50
%l1 = load [trivial] %a1 : $*S
49
51
end_access %a1 : $*S
50
- specify_test "accesspath-base @trace[1]"
52
+ specify_test "accesspath @trace[1]"
51
53
%p2 = ref_element_addr %0 : $Klass, #Klass.f
52
54
debug_value [trace] %p2 : $*S
53
55
%a2 = begin_access [read] [dynamic] %p2 : $*S
@@ -57,36 +59,38 @@ bb0(%0 : @guaranteed $Klass):
57
59
return %99 : $()
58
60
}
59
61
60
- // CHECK-LABEL: begin running test 1 of 2 on testGlobalAddrKlass: accesspath-base with: @trace[0]
62
+ // CHECK-LABEL: begin running test 1 of 2 on testGlobalAddrKlass: accesspath with: @trace[0]
61
63
// CHECK: [[P1:%.*]] = global_addr @globalKlass : $*Klass
62
64
// CHECK: [[A1:%.*]] = begin_access [read] [dynamic] [[P1]] : $*Klass
63
65
// CHECK: [[P2:%.*]] = global_addr @globalKlass : $*Klass
64
66
// CHECK: [[A2:%.*]] = begin_access [read] [dynamic] [[P2]] : $*Klass
65
- // CHECK: Access path base: [[P1]] = global_addr @globalKlass : $*Klass
67
+ // CHECK: Access path for: [[P1]] = global_addr @globalKlass : $*Klass
68
+ // CHECK: base: [[P1]] = global_addr @globalKlass : $*Klass
66
69
// CHECK-NEXT: Exact Use: %{{.*}} = load_borrow [[A1]]
67
70
// CHECK-NEXT: Exact Use: end_access [[A1]]
68
- // CHECK: end running test 1 of 2 on testGlobalAddrKlass: accesspath-base with: @trace[0]
71
+ // CHECK: end running test 1 of 2 on testGlobalAddrKlass: accesspath with: @trace[0]
69
72
70
- // CHECK-LABEL: begin running test 2 of 2 on testGlobalAddrKlass: accesspath-base with: @trace[1]
73
+ // CHECK-LABEL: begin running test 2 of 2 on testGlobalAddrKlass: accesspath with: @trace[1]
71
74
// CHECK: [[P1:%.*]] = global_addr @globalKlass : $*Klass
72
75
// CHECK: [[A1:%.*]] = begin_access [read] [dynamic] [[P1]] : $*Klass
73
76
// CHECK: [[P2:%.*]] = global_addr @globalKlass : $*Klass
74
77
// CHECK: [[A2:%.*]] = begin_access [read] [dynamic] [[P2]] : $*Klass
75
- // CHECK: Access path base: [[P2]] = global_addr @globalKlass : $*Klass
78
+ // CHECK: Access path for: [[P2]] = global_addr @globalKlass : $*Klass
79
+ // CHECK: base: [[P2]] = global_addr @globalKlass : $*Klass
76
80
// CHECK-NEXT: Exact Use: %{{.*}} = load_borrow [[A2]]
77
81
// CHECK-NEXT: Exact Use: end_access [[A2]]
78
- // CHECK: end running test 2 of 2 on testGlobalAddrKlass: accesspath-base with: @trace[1]
82
+ // CHECK: end running test 2 of 2 on testGlobalAddrKlass: accesspath with: @trace[1]
79
83
sil [ossa] @testGlobalAddrKlass : $@convention(thin) () -> () {
80
84
bb0:
81
- specify_test "accesspath-base @trace[0]"
85
+ specify_test "accesspath @trace[0]"
82
86
%p1 = global_addr @globalKlass : $*Klass
83
87
debug_value [trace] %p1 : $*Klass
84
88
%a1 = begin_access [read] [dynamic] %p1 : $*Klass
85
89
%l1 = load_borrow %a1 : $*Klass
86
90
end_borrow %l1 : $Klass
87
91
end_access %a1 : $*Klass
88
92
89
- specify_test "accesspath-base @trace[1]"
93
+ specify_test "accesspath @trace[1]"
90
94
%p2 = global_addr @globalKlass : $*Klass
91
95
debug_value [trace] %p2 : $*Klass
92
96
%a2 = begin_access [read] [dynamic] %p2 : $*Klass
98
102
return %9999 : $()
99
103
}
100
104
101
- // CHECK-LABEL: begin running test 1 of 3 on testGlobalAddrStruct: accesspath-base with: @trace[0]
105
+ // CHECK-LABEL: begin running test 1 of 3 on testGlobalAddrStruct: accesspath with: @trace[0]
102
106
// CHECK: [[P1:%.*]] = global_addr @globalStruct
103
107
// CHECK: [[A1:%.*]] = begin_access [read] [dynamic] [[P1]]
104
108
// CHECK: [[P2:%.*]] = global_addr @globalStruct
@@ -107,12 +111,13 @@ bb0:
107
111
// CHECK: [[P3:%.*]] = global_addr @globalStruct
108
112
// CHECK: [[A3:%.*]] = begin_access [read] [dynamic] [[P3]]
109
113
// CHECK: [[GEP3:%.*]] = struct_element_addr [[A3]]
110
- // CHECK: Access path base: [[P1]] = global_addr @globalStruct
114
+ // CHECK: Access path for: [[P1]] = global_addr @globalStruct
115
+ // CHECK: base: [[P1]] = global_addr @globalStruct
111
116
// CHECK-NEXT: Exact Use: %{{.*}} = load_borrow [[A1]]
112
117
// CHECK-NEXT: Exact Use: end_access [[A1]]
113
- // CHECK: end running test 1 of 3 on testGlobalAddrStruct: accesspath-base with: @trace[0]
118
+ // CHECK: end running test 1 of 3 on testGlobalAddrStruct: accesspath with: @trace[0]
114
119
115
- // CHECK-LABEL: begin running test 2 of 3 on testGlobalAddrStruct: accesspath-base with: @trace[1]
120
+ // CHECK-LABEL: begin running test 2 of 3 on testGlobalAddrStruct: accesspath with: @trace[1]
116
121
// CHECK: [[P1:%.*]] = global_addr @globalStruct
117
122
// CHECK: [[A1:%.*]] = begin_access [read] [dynamic] [[P1]]
118
123
// CHECK: [[P2:%.*]] = global_addr @globalStruct
@@ -121,12 +126,13 @@ bb0:
121
126
// CHECK: [[P3:%.*]] = global_addr @globalStruct
122
127
// CHECK: [[A3:%.*]] = begin_access [read] [dynamic] [[P3]]
123
128
// CHECK: [[GEP3:%.*]] = struct_element_addr [[A3]]
124
- // CHECK: Access path base: [[P2]] = global_addr @globalStruct
129
+ // CHECK: Access path for: [[P2]] = global_addr @globalStruct
130
+ // CHECK: base: [[P2]] = global_addr @globalStruct
125
131
// CHECK-NEXT: Inner Use: %{{.*}} = load_borrow [[GEP2]]
126
132
// CHECK-NEXT: Exact Use: end_access [[A2]]
127
- // CHECK: end running test 2 of 3 on testGlobalAddrStruct: accesspath-base with: @trace[1]
133
+ // CHECK: end running test 2 of 3 on testGlobalAddrStruct: accesspath with: @trace[1]
128
134
129
- // CHECK-LABEL: begin running test 3 of 3 on testGlobalAddrStruct: accesspath-base with: @trace[2]
135
+ // CHECK-LABEL: begin running test 3 of 3 on testGlobalAddrStruct: accesspath with: @trace[2]
130
136
// CHECK: [[P1:%.*]] = global_addr @globalStruct
131
137
// CHECK: [[A1:%.*]] = begin_access [read] [dynamic] [[P1]]
132
138
// CHECK: [[P2:%.*]] = global_addr @globalStruct
@@ -135,21 +141,22 @@ bb0:
135
141
// CHECK: [[P3:%.*]] = global_addr @globalStruct
136
142
// CHECK: [[A3:%.*]] = begin_access [read] [dynamic] [[P3]]
137
143
// CHECK: [[GEP3:%.*]] = struct_element_addr [[A3]]
138
- // CHECK: Access path base: [[P3]] = global_addr @globalStruct
144
+ // CHECK: Access path for: [[P3]] = global_addr @globalStruct
145
+ // CHECK: base: [[P3]] = global_addr @globalStruct
139
146
// CHECK-NEXT: Inner Use: %{{.*}} = load_borrow [[GEP3]]
140
147
// CHECK-NEXT: Exact Use: end_access [[A3]]
141
- // CHECK: end running test 3 of 3 on testGlobalAddrStruct: accesspath-base with: @trace[2]
148
+ // CHECK: end running test 3 of 3 on testGlobalAddrStruct: accesspath with: @trace[2]
142
149
sil [ossa] @testGlobalAddrStruct : $@convention(thin) () -> () {
143
150
bb0:
144
- specify_test "accesspath-base @trace[0]"
151
+ specify_test "accesspath @trace[0]"
145
152
%p3 = global_addr @globalStruct : $*S2
146
153
debug_value [trace] %p3 : $*S2
147
154
%a3 = begin_access [read] [dynamic] %p3 : $*S2
148
155
%l3 = load_borrow %a3 : $*S2
149
156
end_borrow %l3 : $S2
150
157
end_access %a3 : $*S2
151
158
152
- specify_test "accesspath-base @trace[1]"
159
+ specify_test "accesspath @trace[1]"
153
160
%p4 = global_addr @globalStruct : $*S2
154
161
debug_value [trace] %p4 : $*S2
155
162
%a4 = begin_access [read] [dynamic] %p4 : $*S2
158
165
end_borrow %l4 : $Klass
159
166
end_access %a4 : $*S2
160
167
161
- specify_test "accesspath-base @trace[2]"
168
+ specify_test "accesspath @trace[2]"
162
169
%p5 = global_addr @globalStruct : $*S2
163
170
debug_value [trace] %p5 : $*S2
164
171
%a5 = begin_access [read] [dynamic] %p5 : $*S2
0 commit comments