mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-25 19:31:10 +00:00
Adopt ref in Core.Iterate.Next (#7381)
Change the `cursor` parameter in `Core.Iterate.Next` to be a `ref` parameter instead of a pointer parameter. Assisted-by: Gemini via Antigravity --------- Co-authored-by: Geoff Romer <gromer@google.com>
This commit is contained in:
1 parent
72e425fe5c
commit
df3cf92943
14 files changed
+703
-675
No files matched your search
+137
-137
@@ -167,103 +167,103 @@ fn F() {
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define linkonce_odr void @"_CNext.Array.e6a7e802f5bda6f1.Core:Iterate.Core.64c6854216281bef"(ptr sret(<{ i32, i1 }>) %return, ptr %self, ptr %cursor) #0 !dbg !83 {
|
||||
// CHECK:STDOUT: %1 = load i32, ptr %cursor, align 4, !dbg !91
|
||||
// CHECK:STDOUT: %2 = icmp slt i32 %1, 6, !dbg !91
|
||||
// CHECK:STDOUT: br i1 %2, label %3, label %7, !dbg !92
|
||||
// CHECK:STDOUT: %1 = load i32, ptr %cursor, align 4, !dbg !90
|
||||
// CHECK:STDOUT: %2 = icmp slt i32 %1, 6, !dbg !90
|
||||
// CHECK:STDOUT: br i1 %2, label %3, label %7, !dbg !91
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: 3: ; preds = %0
|
||||
// CHECK:STDOUT: call void @"_COp.Int.9452f4c51951679b.Core:Inc.Core.be1e879c1ad406d8"(ptr %cursor), !dbg !95
|
||||
// CHECK:STDOUT: %4 = load i32, ptr %cursor, align 4, !dbg !98
|
||||
// CHECK:STDOUT: %5 = sub i32 %4, 1, !dbg !98
|
||||
// CHECK:STDOUT: %array.index = getelementptr inbounds [6 x i32], ptr %self, i32 0, i32 %5, !dbg !96
|
||||
// CHECK:STDOUT: %6 = load i32, ptr %array.index, align 4, !dbg !96
|
||||
// CHECK:STDOUT: call void @_CSome.Optional.Core.fc4496a6c25d418b(ptr %return, i32 %6), !dbg !99
|
||||
// CHECK:STDOUT: ret void, !dbg !102
|
||||
// CHECK:STDOUT: call void @"_COp.Int.9452f4c51951679b.Core:Inc.Core.be1e879c1ad406d8"(ptr %cursor), !dbg !93
|
||||
// CHECK:STDOUT: %4 = load i32, ptr %cursor, align 4, !dbg !95
|
||||
// CHECK:STDOUT: %5 = sub i32 %4, 1, !dbg !95
|
||||
// CHECK:STDOUT: %array.index = getelementptr inbounds [6 x i32], ptr %self, i32 0, i32 %5, !dbg !94
|
||||
// CHECK:STDOUT: %6 = load i32, ptr %array.index, align 4, !dbg !94
|
||||
// CHECK:STDOUT: call void @_CSome.Optional.Core.fc4496a6c25d418b(ptr %return, i32 %6), !dbg !96
|
||||
// CHECK:STDOUT: ret void, !dbg !99
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: 7: ; preds = %0
|
||||
// CHECK:STDOUT: call void @_CNone.Optional.Core.fc4496a6c25d418b(ptr %return), !dbg !103
|
||||
// CHECK:STDOUT: ret void, !dbg !106
|
||||
// CHECK:STDOUT: call void @_CNone.Optional.Core.fc4496a6c25d418b(ptr %return), !dbg !100
|
||||
// CHECK:STDOUT: ret void, !dbg !103
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define linkonce_odr i1 @_CHasValue.Optional.Core.fc4496a6c25d418b(ptr %self) #0 !dbg !109 {
|
||||
// CHECK:STDOUT: %1 = call i1 @"_CHas.5d6f3f3a4b44a8f1:OptionalStorage.Core.4d9f279dbc2b9f6f"(ptr %self), !dbg !115
|
||||
// CHECK:STDOUT: ret i1 %1, !dbg !116
|
||||
// CHECK:STDOUT: define linkonce_odr i1 @_CHasValue.Optional.Core.fc4496a6c25d418b(ptr %self) #0 !dbg !106 {
|
||||
// CHECK:STDOUT: %1 = call i1 @"_CHas.5d6f3f3a4b44a8f1:OptionalStorage.Core.4d9f279dbc2b9f6f"(ptr %self), !dbg !112
|
||||
// CHECK:STDOUT: ret i1 %1, !dbg !113
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define linkonce_odr i32 @_CGet.Optional.Core.fc4496a6c25d418b(ptr %self) #0 !dbg !118 {
|
||||
// CHECK:STDOUT: %1 = call i32 @"_CGet.5d6f3f3a4b44a8f1:OptionalStorage.Core.4d9f279dbc2b9f6f"(ptr %self), !dbg !124
|
||||
// CHECK:STDOUT: ret i32 %1, !dbg !125
|
||||
// CHECK:STDOUT: define linkonce_odr i32 @_CGet.Optional.Core.fc4496a6c25d418b(ptr %self) #0 !dbg !115 {
|
||||
// CHECK:STDOUT: %1 = call i32 @"_CGet.5d6f3f3a4b44a8f1:OptionalStorage.Core.4d9f279dbc2b9f6f"(ptr %self), !dbg !121
|
||||
// CHECK:STDOUT: ret i32 %1, !dbg !122
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define linkonce_odr void @"_COp.Int.9452f4c51951679b.Core:Inc.Core.be1e879c1ad406d8"(ptr %self) #0 !dbg !128 {
|
||||
// CHECK:STDOUT: call void @"_COp:thunk:AddAssignWith.39e2e78a3c2e036d.Core:Int.9452f4c51951679b.Core:AddAssignWith.bcc2a64c00f3554f.Core.83481f1872d67895"(ptr %self, i32 1), !dbg !131
|
||||
// CHECK:STDOUT: ret void, !dbg !134
|
||||
// CHECK:STDOUT: define linkonce_odr void @"_COp.Int.9452f4c51951679b.Core:Inc.Core.be1e879c1ad406d8"(ptr %self) #0 !dbg !125 {
|
||||
// CHECK:STDOUT: call void @"_COp:thunk:AddAssignWith.39e2e78a3c2e036d.Core:Int.9452f4c51951679b.Core:AddAssignWith.bcc2a64c00f3554f.Core.83481f1872d67895"(ptr %self, i32 1), !dbg !128
|
||||
// CHECK:STDOUT: ret void, !dbg !131
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define linkonce_odr void @_CSome.Optional.Core.fc4496a6c25d418b(ptr sret(<{ i32, i1 }>) %return, i32 %value) #0 !dbg !136 {
|
||||
// CHECK:STDOUT: call void @"_CSome.5d6f3f3a4b44a8f1:OptionalStorage.Core.4d9f279dbc2b9f6f"(ptr %return, i32 %value), !dbg !141
|
||||
// CHECK:STDOUT: ret void, !dbg !142
|
||||
// CHECK:STDOUT: define linkonce_odr void @_CSome.Optional.Core.fc4496a6c25d418b(ptr sret(<{ i32, i1 }>) %return, i32 %value) #0 !dbg !133 {
|
||||
// CHECK:STDOUT: call void @"_CSome.5d6f3f3a4b44a8f1:OptionalStorage.Core.4d9f279dbc2b9f6f"(ptr %return, i32 %value), !dbg !138
|
||||
// CHECK:STDOUT: ret void, !dbg !139
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define linkonce_odr void @_CNone.Optional.Core.fc4496a6c25d418b(ptr sret(<{ i32, i1 }>) %return) #0 !dbg !144 {
|
||||
// CHECK:STDOUT: call void @"_CNone.5d6f3f3a4b44a8f1:OptionalStorage.Core.4d9f279dbc2b9f6f"(ptr %return), !dbg !147
|
||||
// CHECK:STDOUT: ret void, !dbg !148
|
||||
// CHECK:STDOUT: define linkonce_odr void @_CNone.Optional.Core.fc4496a6c25d418b(ptr sret(<{ i32, i1 }>) %return) #0 !dbg !141 {
|
||||
// CHECK:STDOUT: call void @"_CNone.5d6f3f3a4b44a8f1:OptionalStorage.Core.4d9f279dbc2b9f6f"(ptr %return), !dbg !144
|
||||
// CHECK:STDOUT: ret void, !dbg !145
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define linkonce_odr i1 @"_CHas.5d6f3f3a4b44a8f1:OptionalStorage.Core.4d9f279dbc2b9f6f"(ptr %value) #0 !dbg !149 {
|
||||
// CHECK:STDOUT: %has_value = getelementptr inbounds nuw <{ i32, i1 }>, ptr %value, i32 0, i32 1, !dbg !154
|
||||
// CHECK:STDOUT: %1 = load i8, ptr %has_value, align 1, !dbg !154
|
||||
// CHECK:STDOUT: %2 = trunc i8 %1 to i1, !dbg !154
|
||||
// CHECK:STDOUT: ret i1 %2, !dbg !155
|
||||
// CHECK:STDOUT: define linkonce_odr i1 @"_CHas.5d6f3f3a4b44a8f1:OptionalStorage.Core.4d9f279dbc2b9f6f"(ptr %value) #0 !dbg !146 {
|
||||
// CHECK:STDOUT: %has_value = getelementptr inbounds nuw <{ i32, i1 }>, ptr %value, i32 0, i32 1, !dbg !151
|
||||
// CHECK:STDOUT: %1 = load i8, ptr %has_value, align 1, !dbg !151
|
||||
// CHECK:STDOUT: %2 = trunc i8 %1 to i1, !dbg !151
|
||||
// CHECK:STDOUT: ret i1 %2, !dbg !152
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define linkonce_odr i32 @"_CGet.5d6f3f3a4b44a8f1:OptionalStorage.Core.4d9f279dbc2b9f6f"(ptr %value) #0 !dbg !157 {
|
||||
// CHECK:STDOUT: %value1 = getelementptr inbounds nuw <{ i32, i1 }>, ptr %value, i32 0, i32 0, !dbg !162
|
||||
// CHECK:STDOUT: %1 = load i32, ptr %value1, align 4, !dbg !162
|
||||
// CHECK:STDOUT: ret i32 %1, !dbg !163
|
||||
// CHECK:STDOUT: define linkonce_odr i32 @"_CGet.5d6f3f3a4b44a8f1:OptionalStorage.Core.4d9f279dbc2b9f6f"(ptr %value) #0 !dbg !154 {
|
||||
// CHECK:STDOUT: %value1 = getelementptr inbounds nuw <{ i32, i1 }>, ptr %value, i32 0, i32 0, !dbg !159
|
||||
// CHECK:STDOUT: %1 = load i32, ptr %value1, align 4, !dbg !159
|
||||
// CHECK:STDOUT: ret i32 %1, !dbg !160
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: alwaysinline nounwind
|
||||
// CHECK:STDOUT: define linkonce_odr void @"_COp:thunk:AddAssignWith.39e2e78a3c2e036d.Core:Int.9452f4c51951679b.Core:AddAssignWith.bcc2a64c00f3554f.Core.83481f1872d67895"(ptr %self, i32 %other) #2 !dbg !165 {
|
||||
// CHECK:STDOUT: %1 = call i32 @"_CConvert.45e1f8de18643ddf:ImplicitAs.0bc6489996802dd4.Core.bb469f8924cce044"(i32 %other), !dbg !168
|
||||
// CHECK:STDOUT: %2 = load i32, ptr %self, align 4, !dbg !169
|
||||
// CHECK:STDOUT: %3 = add i32 %2, %1, !dbg !169
|
||||
// CHECK:STDOUT: store i32 %3, ptr %self, align 4, !dbg !169
|
||||
// CHECK:STDOUT: ret void, !dbg !169
|
||||
// CHECK:STDOUT: define linkonce_odr void @"_COp:thunk:AddAssignWith.39e2e78a3c2e036d.Core:Int.9452f4c51951679b.Core:AddAssignWith.bcc2a64c00f3554f.Core.83481f1872d67895"(ptr %self, i32 %other) #2 !dbg !162 {
|
||||
// CHECK:STDOUT: %1 = call i32 @"_CConvert.45e1f8de18643ddf:ImplicitAs.0bc6489996802dd4.Core.bb469f8924cce044"(i32 %other), !dbg !165
|
||||
// CHECK:STDOUT: %2 = load i32, ptr %self, align 4, !dbg !166
|
||||
// CHECK:STDOUT: %3 = add i32 %2, %1, !dbg !166
|
||||
// CHECK:STDOUT: store i32 %3, ptr %self, align 4, !dbg !166
|
||||
// CHECK:STDOUT: ret void, !dbg !166
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define linkonce_odr void @"_CSome.5d6f3f3a4b44a8f1:OptionalStorage.Core.4d9f279dbc2b9f6f"(ptr sret(<{ i32, i1 }>) %return, i32 %self) #0 !dbg !173 {
|
||||
// CHECK:STDOUT: %value = getelementptr inbounds nuw <{ i32, i1 }>, ptr %return, i32 0, i32 0, !dbg !182
|
||||
// CHECK:STDOUT: store i32 %self, ptr %value, align 4, !dbg !182
|
||||
// CHECK:STDOUT: %has_value = getelementptr inbounds nuw <{ i32, i1 }>, ptr %return, i32 0, i32 1, !dbg !184
|
||||
// CHECK:STDOUT: store i8 1, ptr %has_value, align 1, !dbg !184
|
||||
// CHECK:STDOUT: ret void, !dbg !185
|
||||
// CHECK:STDOUT: define linkonce_odr void @"_CSome.5d6f3f3a4b44a8f1:OptionalStorage.Core.4d9f279dbc2b9f6f"(ptr sret(<{ i32, i1 }>) %return, i32 %self) #0 !dbg !170 {
|
||||
// CHECK:STDOUT: %value = getelementptr inbounds nuw <{ i32, i1 }>, ptr %return, i32 0, i32 0, !dbg !179
|
||||
// CHECK:STDOUT: store i32 %self, ptr %value, align 4, !dbg !179
|
||||
// CHECK:STDOUT: %has_value = getelementptr inbounds nuw <{ i32, i1 }>, ptr %return, i32 0, i32 1, !dbg !181
|
||||
// CHECK:STDOUT: store i8 1, ptr %has_value, align 1, !dbg !181
|
||||
// CHECK:STDOUT: ret void, !dbg !182
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define linkonce_odr void @"_CNone.5d6f3f3a4b44a8f1:OptionalStorage.Core.4d9f279dbc2b9f6f"(ptr sret(<{ i32, i1 }>) %return) #0 !dbg !187 {
|
||||
// CHECK:STDOUT: %has_value = getelementptr inbounds nuw <{ i32, i1 }>, ptr %return, i32 0, i32 1, !dbg !194
|
||||
// CHECK:STDOUT: store i8 0, ptr %has_value, align 1, !dbg !194
|
||||
// CHECK:STDOUT: ret void, !dbg !195
|
||||
// CHECK:STDOUT: define linkonce_odr void @"_CNone.5d6f3f3a4b44a8f1:OptionalStorage.Core.4d9f279dbc2b9f6f"(ptr sret(<{ i32, i1 }>) %return) #0 !dbg !184 {
|
||||
// CHECK:STDOUT: %has_value = getelementptr inbounds nuw <{ i32, i1 }>, ptr %return, i32 0, i32 1, !dbg !191
|
||||
// CHECK:STDOUT: store i8 0, ptr %has_value, align 1, !dbg !191
|
||||
// CHECK:STDOUT: ret void, !dbg !192
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define linkonce_odr i32 @"_CConvert.45e1f8de18643ddf:ImplicitAs.0bc6489996802dd4.Core.bb469f8924cce044"(i32 %self) #0 !dbg !196 {
|
||||
// CHECK:STDOUT: %1 = call i32 @"_CAsInt.Int.9452f4c51951679b.Core:AnyInt.Core.be1e879c1ad406d8"(i32 %self), !dbg !201
|
||||
// CHECK:STDOUT: ret i32 %1, !dbg !203
|
||||
// CHECK:STDOUT: define linkonce_odr i32 @"_CConvert.45e1f8de18643ddf:ImplicitAs.0bc6489996802dd4.Core.bb469f8924cce044"(i32 %self) #0 !dbg !193 {
|
||||
// CHECK:STDOUT: %1 = call i32 @"_CAsInt.Int.9452f4c51951679b.Core:AnyInt.Core.be1e879c1ad406d8"(i32 %self), !dbg !198
|
||||
// CHECK:STDOUT: ret i32 %1, !dbg !200
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define linkonce_odr i32 @"_CAsInt.Int.9452f4c51951679b.Core:AnyInt.Core.be1e879c1ad406d8"(i32 %self) #0 !dbg !205 {
|
||||
// CHECK:STDOUT: ret i32 %self, !dbg !211
|
||||
// CHECK:STDOUT: define linkonce_odr i32 @"_CAsInt.Int.9452f4c51951679b.Core:AnyInt.Core.be1e879c1ad406d8"(i32 %self) #0 !dbg !202 {
|
||||
// CHECK:STDOUT: ret i32 %self, !dbg !208
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; uselistorder directives
|
||||
@@ -294,7 +294,7 @@ fn F() {
|
||||
// CHECK:STDOUT: !20 = !DILocation(line: 17, column: 7, scope: !14)
|
||||
// CHECK:STDOUT: !21 = !{!6, !11}
|
||||
// CHECK:STDOUT: !22 = !DISubroutineType(types: !21)
|
||||
// CHECK:STDOUT: !23 = !{!11, !11, !11}
|
||||
// CHECK:STDOUT: !23 = !{!11, !11, !6}
|
||||
// CHECK:STDOUT: !24 = !DISubroutineType(types: !23)
|
||||
// CHECK:STDOUT: !25 = !{!11, !11}
|
||||
// CHECK:STDOUT: !26 = !DISubroutineType(types: !25)
|
||||
@@ -350,84 +350,84 @@ fn F() {
|
||||
// CHECK:STDOUT: !77 = !DILocalVariable(arg: 1, scope: !76, type: !11)
|
||||
// CHECK:STDOUT: !81 = !DILocation(line: 23, column: 38, scope: !76)
|
||||
// CHECK:STDOUT: !82 = !{!77}
|
||||
// CHECK:STDOUT: !83 = distinct !DISubprogram(name: "Next", linkageName: "_CNext.Array.e6a7e802f5bda6f1.Core:Iterate.Core.64c6854216281bef", scope: null, file: !75, line: 24, type: !24, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !107)
|
||||
// CHECK:STDOUT: !83 = distinct !DISubprogram(name: "Next", linkageName: "_CNext.Array.e6a7e802f5bda6f1.Core:Iterate.Core.64c6854216281bef", scope: null, file: !75, line: 24, type: !24, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !104)
|
||||
// CHECK:STDOUT: !84 = !DILocalVariable(arg: 1, scope: !83, type: !11)
|
||||
// CHECK:STDOUT: !85 = !DILocalVariable(arg: 2, scope: !83, type: !11)
|
||||
// CHECK:STDOUT: !91 = !DILocation(line: 25, column: 9, scope: !83)
|
||||
// CHECK:STDOUT: !92 = !DILocation(line: 25, column: 8, scope: !83)
|
||||
// CHECK:STDOUT: !95 = !DILocation(line: 26, column: 7, scope: !83)
|
||||
// CHECK:STDOUT: !96 = !DILocation(line: 27, column: 31, scope: !83)
|
||||
// CHECK:STDOUT: !98 = !DILocation(line: 27, column: 36, scope: !83)
|
||||
// CHECK:STDOUT: !99 = !DILocation(line: 27, column: 14, scope: !83)
|
||||
// CHECK:STDOUT: !100 = !{!11, !6}
|
||||
// CHECK:STDOUT: !101 = !DISubroutineType(types: !100)
|
||||
// CHECK:STDOUT: !102 = !DILocation(line: 27, column: 7, scope: !83)
|
||||
// CHECK:STDOUT: !103 = !DILocation(line: 29, column: 14, scope: !83)
|
||||
// CHECK:STDOUT: !104 = !{!11}
|
||||
// CHECK:STDOUT: !105 = !DISubroutineType(types: !104)
|
||||
// CHECK:STDOUT: !106 = !DILocation(line: 29, column: 7, scope: !83)
|
||||
// CHECK:STDOUT: !107 = !{!84, !85}
|
||||
// CHECK:STDOUT: !108 = !DIFile(filename: "{{.*}}/prelude/types/optional.carbon", directory: "")
|
||||
// CHECK:STDOUT: !109 = distinct !DISubprogram(name: "HasValue", linkageName: "_CHasValue.Optional.Core.fc4496a6c25d418b", scope: null, file: !108, line: 36, type: !26, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !117)
|
||||
// CHECK:STDOUT: !110 = !DILocalVariable(arg: 1, scope: !109, type: !11)
|
||||
// CHECK:STDOUT: !115 = !DILocation(line: 37, column: 12, scope: !109)
|
||||
// CHECK:STDOUT: !116 = !DILocation(line: 37, column: 5, scope: !109)
|
||||
// CHECK:STDOUT: !117 = !{!110}
|
||||
// CHECK:STDOUT: !118 = distinct !DISubprogram(name: "Get", linkageName: "_CGet.Optional.Core.fc4496a6c25d418b", scope: null, file: !108, line: 39, type: !22, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !126)
|
||||
// CHECK:STDOUT: !119 = !DILocalVariable(arg: 1, scope: !118, type: !11)
|
||||
// CHECK:STDOUT: !124 = !DILocation(line: 40, column: 12, scope: !118)
|
||||
// CHECK:STDOUT: !125 = !DILocation(line: 40, column: 5, scope: !118)
|
||||
// CHECK:STDOUT: !126 = !{!119}
|
||||
// CHECK:STDOUT: !127 = !DIFile(filename: "{{.*}}/prelude/types/int.carbon", directory: "")
|
||||
// CHECK:STDOUT: !128 = distinct !DISubprogram(name: "Op", linkageName: "_COp.Int.9452f4c51951679b.Core:Inc.Core.be1e879c1ad406d8", scope: null, file: !127, line: 396, type: !8, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !135)
|
||||
// CHECK:STDOUT: !129 = !DILocalVariable(arg: 1, scope: !128, type: !6)
|
||||
// CHECK:STDOUT: !131 = !DILocation(line: 398, column: 5, scope: !128)
|
||||
// CHECK:STDOUT: !132 = !{null, !6, !6}
|
||||
// CHECK:STDOUT: !133 = !DISubroutineType(types: !132)
|
||||
// CHECK:STDOUT: !134 = !DILocation(line: 396, column: 3, scope: !128)
|
||||
// CHECK:STDOUT: !135 = !{!129}
|
||||
// CHECK:STDOUT: !136 = distinct !DISubprogram(name: "Some", linkageName: "_CSome.Optional.Core.fc4496a6c25d418b", scope: null, file: !108, line: 33, type: !101, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !143)
|
||||
// CHECK:STDOUT: !137 = !DILocalVariable(arg: 1, scope: !136, type: !6)
|
||||
// CHECK:STDOUT: !141 = !DILocation(line: 34, column: 12, scope: !136)
|
||||
// CHECK:STDOUT: !142 = !DILocation(line: 34, column: 5, scope: !136)
|
||||
// CHECK:STDOUT: !143 = !{!137}
|
||||
// CHECK:STDOUT: !144 = distinct !DISubprogram(name: "None", linkageName: "_CNone.Optional.Core.fc4496a6c25d418b", scope: null, file: !108, line: 30, type: !105, spFlags: DISPFlagDefinition, unit: !5)
|
||||
// CHECK:STDOUT: !147 = !DILocation(line: 31, column: 12, scope: !144)
|
||||
// CHECK:STDOUT: !148 = !DILocation(line: 31, column: 5, scope: !144)
|
||||
// CHECK:STDOUT: !149 = distinct !DISubprogram(name: "Has", linkageName: "_CHas.5d6f3f3a4b44a8f1:OptionalStorage.Core.4d9f279dbc2b9f6f", scope: null, file: !108, line: 141, type: !26, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !156)
|
||||
// CHECK:STDOUT: !150 = !DILocalVariable(arg: 1, scope: !149, type: !11)
|
||||
// CHECK:STDOUT: !154 = !DILocation(line: 142, column: 12, scope: !149)
|
||||
// CHECK:STDOUT: !155 = !DILocation(line: 142, column: 5, scope: !149)
|
||||
// CHECK:STDOUT: !156 = !{!150}
|
||||
// CHECK:STDOUT: !157 = distinct !DISubprogram(name: "Get", linkageName: "_CGet.5d6f3f3a4b44a8f1:OptionalStorage.Core.4d9f279dbc2b9f6f", scope: null, file: !108, line: 144, type: !22, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !164)
|
||||
// CHECK:STDOUT: !158 = !DILocalVariable(arg: 1, scope: !157, type: !11)
|
||||
// CHECK:STDOUT: !162 = !DILocation(line: 145, column: 12, scope: !157)
|
||||
// CHECK:STDOUT: !163 = !DILocation(line: 145, column: 5, scope: !157)
|
||||
// CHECK:STDOUT: !164 = !{!158}
|
||||
// CHECK:STDOUT: !165 = distinct !DISubprogram(name: "Op", linkageName: "_COp:thunk:AddAssignWith.39e2e78a3c2e036d.Core:Int.9452f4c51951679b.Core:AddAssignWith.bcc2a64c00f3554f.Core.83481f1872d67895", scope: null, file: !127, line: 331, type: !133, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !172)
|
||||
// CHECK:STDOUT: !166 = !DILocalVariable(arg: 1, scope: !165, type: !6)
|
||||
// CHECK:STDOUT: !167 = !DILocalVariable(arg: 2, scope: !165, type: !6)
|
||||
// CHECK:STDOUT: !168 = !DILocation(line: 0, scope: !165)
|
||||
// CHECK:STDOUT: !169 = !DILocation(line: 331, column: 3, scope: !165)
|
||||
// CHECK:STDOUT: !170 = !{!6, !6}
|
||||
// CHECK:STDOUT: !171 = !DISubroutineType(types: !170)
|
||||
// CHECK:STDOUT: !172 = !{!166, !167}
|
||||
// CHECK:STDOUT: !173 = distinct !DISubprogram(name: "Some", linkageName: "_CSome.5d6f3f3a4b44a8f1:OptionalStorage.Core.4d9f279dbc2b9f6f", scope: null, file: !108, line: 131, type: !101, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !186)
|
||||
// CHECK:STDOUT: !174 = !DILocalVariable(arg: 1, scope: !173, type: !6)
|
||||
// CHECK:STDOUT: !182 = !DILocation(line: 137, column: 5, scope: !173)
|
||||
// CHECK:STDOUT: !184 = !DILocation(line: 138, column: 5, scope: !173)
|
||||
// CHECK:STDOUT: !185 = !DILocation(line: 139, column: 5, scope: !173)
|
||||
// CHECK:STDOUT: !186 = !{!174}
|
||||
// CHECK:STDOUT: !187 = distinct !DISubprogram(name: "None", linkageName: "_CNone.5d6f3f3a4b44a8f1:OptionalStorage.Core.4d9f279dbc2b9f6f", scope: null, file: !108, line: 125, type: !105, spFlags: DISPFlagDefinition, unit: !5)
|
||||
// CHECK:STDOUT: !194 = !DILocation(line: 128, column: 5, scope: !187)
|
||||
// CHECK:STDOUT: !195 = !DILocation(line: 129, column: 5, scope: !187)
|
||||
// CHECK:STDOUT: !196 = distinct !DISubprogram(name: "Convert", linkageName: "_CConvert.45e1f8de18643ddf:ImplicitAs.0bc6489996802dd4.Core.bb469f8924cce044", scope: null, file: !127, line: 64, type: !171, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !204)
|
||||
// CHECK:STDOUT: !197 = !DILocalVariable(arg: 1, scope: !196, type: !6)
|
||||
// CHECK:STDOUT: !201 = !DILocation(line: 66, column: 17, scope: !196)
|
||||
// CHECK:STDOUT: !203 = !DILocation(line: 66, column: 5, scope: !196)
|
||||
// CHECK:STDOUT: !204 = !{!197}
|
||||
// CHECK:STDOUT: !205 = distinct !DISubprogram(name: "AsInt", linkageName: "_CAsInt.Int.9452f4c51951679b.Core:AnyInt.Core.be1e879c1ad406d8", scope: null, file: !127, line: 59, type: !171, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !212)
|
||||
// CHECK:STDOUT: !206 = !DILocalVariable(arg: 1, scope: !205, type: !6)
|
||||
// CHECK:STDOUT: !211 = !DILocation(line: 59, column: 28, scope: !205)
|
||||
// CHECK:STDOUT: !212 = !{!206}
|
||||
// CHECK:STDOUT: !85 = !DILocalVariable(arg: 2, scope: !83, type: !6)
|
||||
// CHECK:STDOUT: !90 = !DILocation(line: 25, column: 9, scope: !83)
|
||||
// CHECK:STDOUT: !91 = !DILocation(line: 25, column: 8, scope: !83)
|
||||
// CHECK:STDOUT: !93 = !DILocation(line: 26, column: 7, scope: !83)
|
||||
// CHECK:STDOUT: !94 = !DILocation(line: 27, column: 31, scope: !83)
|
||||
// CHECK:STDOUT: !95 = !DILocation(line: 27, column: 36, scope: !83)
|
||||
// CHECK:STDOUT: !96 = !DILocation(line: 27, column: 14, scope: !83)
|
||||
// CHECK:STDOUT: !97 = !{!11, !6}
|
||||
// CHECK:STDOUT: !98 = !DISubroutineType(types: !97)
|
||||
// CHECK:STDOUT: !99 = !DILocation(line: 27, column: 7, scope: !83)
|
||||
// CHECK:STDOUT: !100 = !DILocation(line: 29, column: 14, scope: !83)
|
||||
// CHECK:STDOUT: !101 = !{!11}
|
||||
// CHECK:STDOUT: !102 = !DISubroutineType(types: !101)
|
||||
// CHECK:STDOUT: !103 = !DILocation(line: 29, column: 7, scope: !83)
|
||||
// CHECK:STDOUT: !104 = !{!84, !85}
|
||||
// CHECK:STDOUT: !105 = !DIFile(filename: "{{.*}}/prelude/types/optional.carbon", directory: "")
|
||||
// CHECK:STDOUT: !106 = distinct !DISubprogram(name: "HasValue", linkageName: "_CHasValue.Optional.Core.fc4496a6c25d418b", scope: null, file: !105, line: 36, type: !26, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !114)
|
||||
// CHECK:STDOUT: !107 = !DILocalVariable(arg: 1, scope: !106, type: !11)
|
||||
// CHECK:STDOUT: !112 = !DILocation(line: 37, column: 12, scope: !106)
|
||||
// CHECK:STDOUT: !113 = !DILocation(line: 37, column: 5, scope: !106)
|
||||
// CHECK:STDOUT: !114 = !{!107}
|
||||
// CHECK:STDOUT: !115 = distinct !DISubprogram(name: "Get", linkageName: "_CGet.Optional.Core.fc4496a6c25d418b", scope: null, file: !105, line: 39, type: !22, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !123)
|
||||
// CHECK:STDOUT: !116 = !DILocalVariable(arg: 1, scope: !115, type: !11)
|
||||
// CHECK:STDOUT: !121 = !DILocation(line: 40, column: 12, scope: !115)
|
||||
// CHECK:STDOUT: !122 = !DILocation(line: 40, column: 5, scope: !115)
|
||||
// CHECK:STDOUT: !123 = !{!116}
|
||||
// CHECK:STDOUT: !124 = !DIFile(filename: "{{.*}}/prelude/types/int.carbon", directory: "")
|
||||
// CHECK:STDOUT: !125 = distinct !DISubprogram(name: "Op", linkageName: "_COp.Int.9452f4c51951679b.Core:Inc.Core.be1e879c1ad406d8", scope: null, file: !124, line: 396, type: !8, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !132)
|
||||
// CHECK:STDOUT: !126 = !DILocalVariable(arg: 1, scope: !125, type: !6)
|
||||
// CHECK:STDOUT: !128 = !DILocation(line: 398, column: 5, scope: !125)
|
||||
// CHECK:STDOUT: !129 = !{null, !6, !6}
|
||||
// CHECK:STDOUT: !130 = !DISubroutineType(types: !129)
|
||||
// CHECK:STDOUT: !131 = !DILocation(line: 396, column: 3, scope: !125)
|
||||
// CHECK:STDOUT: !132 = !{!126}
|
||||
// CHECK:STDOUT: !133 = distinct !DISubprogram(name: "Some", linkageName: "_CSome.Optional.Core.fc4496a6c25d418b", scope: null, file: !105, line: 33, type: !98, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !140)
|
||||
// CHECK:STDOUT: !134 = !DILocalVariable(arg: 1, scope: !133, type: !6)
|
||||
// CHECK:STDOUT: !138 = !DILocation(line: 34, column: 12, scope: !133)
|
||||
// CHECK:STDOUT: !139 = !DILocation(line: 34, column: 5, scope: !133)
|
||||
// CHECK:STDOUT: !140 = !{!134}
|
||||
// CHECK:STDOUT: !141 = distinct !DISubprogram(name: "None", linkageName: "_CNone.Optional.Core.fc4496a6c25d418b", scope: null, file: !105, line: 30, type: !102, spFlags: DISPFlagDefinition, unit: !5)
|
||||
// CHECK:STDOUT: !144 = !DILocation(line: 31, column: 12, scope: !141)
|
||||
// CHECK:STDOUT: !145 = !DILocation(line: 31, column: 5, scope: !141)
|
||||
// CHECK:STDOUT: !146 = distinct !DISubprogram(name: "Has", linkageName: "_CHas.5d6f3f3a4b44a8f1:OptionalStorage.Core.4d9f279dbc2b9f6f", scope: null, file: !105, line: 141, type: !26, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !153)
|
||||
// CHECK:STDOUT: !147 = !DILocalVariable(arg: 1, scope: !146, type: !11)
|
||||
// CHECK:STDOUT: !151 = !DILocation(line: 142, column: 12, scope: !146)
|
||||
// CHECK:STDOUT: !152 = !DILocation(line: 142, column: 5, scope: !146)
|
||||
// CHECK:STDOUT: !153 = !{!147}
|
||||
// CHECK:STDOUT: !154 = distinct !DISubprogram(name: "Get", linkageName: "_CGet.5d6f3f3a4b44a8f1:OptionalStorage.Core.4d9f279dbc2b9f6f", scope: null, file: !105, line: 144, type: !22, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !161)
|
||||
// CHECK:STDOUT: !155 = !DILocalVariable(arg: 1, scope: !154, type: !11)
|
||||
// CHECK:STDOUT: !159 = !DILocation(line: 145, column: 12, scope: !154)
|
||||
// CHECK:STDOUT: !160 = !DILocation(line: 145, column: 5, scope: !154)
|
||||
// CHECK:STDOUT: !161 = !{!155}
|
||||
// CHECK:STDOUT: !162 = distinct !DISubprogram(name: "Op", linkageName: "_COp:thunk:AddAssignWith.39e2e78a3c2e036d.Core:Int.9452f4c51951679b.Core:AddAssignWith.bcc2a64c00f3554f.Core.83481f1872d67895", scope: null, file: !124, line: 331, type: !130, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !169)
|
||||
// CHECK:STDOUT: !163 = !DILocalVariable(arg: 1, scope: !162, type: !6)
|
||||
// CHECK:STDOUT: !164 = !DILocalVariable(arg: 2, scope: !162, type: !6)
|
||||
// CHECK:STDOUT: !165 = !DILocation(line: 0, scope: !162)
|
||||
// CHECK:STDOUT: !166 = !DILocation(line: 331, column: 3, scope: !162)
|
||||
// CHECK:STDOUT: !167 = !{!6, !6}
|
||||
// CHECK:STDOUT: !168 = !DISubroutineType(types: !167)
|
||||
// CHECK:STDOUT: !169 = !{!163, !164}
|
||||
// CHECK:STDOUT: !170 = distinct !DISubprogram(name: "Some", linkageName: "_CSome.5d6f3f3a4b44a8f1:OptionalStorage.Core.4d9f279dbc2b9f6f", scope: null, file: !105, line: 131, type: !98, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !183)
|
||||
// CHECK:STDOUT: !171 = !DILocalVariable(arg: 1, scope: !170, type: !6)
|
||||
// CHECK:STDOUT: !179 = !DILocation(line: 137, column: 5, scope: !170)
|
||||
// CHECK:STDOUT: !181 = !DILocation(line: 138, column: 5, scope: !170)
|
||||
// CHECK:STDOUT: !182 = !DILocation(line: 139, column: 5, scope: !170)
|
||||
// CHECK:STDOUT: !183 = !{!171}
|
||||
// CHECK:STDOUT: !184 = distinct !DISubprogram(name: "None", linkageName: "_CNone.5d6f3f3a4b44a8f1:OptionalStorage.Core.4d9f279dbc2b9f6f", scope: null, file: !105, line: 125, type: !102, spFlags: DISPFlagDefinition, unit: !5)
|
||||
// CHECK:STDOUT: !191 = !DILocation(line: 128, column: 5, scope: !184)
|
||||
// CHECK:STDOUT: !192 = !DILocation(line: 129, column: 5, scope: !184)
|
||||
// CHECK:STDOUT: !193 = distinct !DISubprogram(name: "Convert", linkageName: "_CConvert.45e1f8de18643ddf:ImplicitAs.0bc6489996802dd4.Core.bb469f8924cce044", scope: null, file: !124, line: 64, type: !168, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !201)
|
||||
// CHECK:STDOUT: !194 = !DILocalVariable(arg: 1, scope: !193, type: !6)
|
||||
// CHECK:STDOUT: !198 = !DILocation(line: 66, column: 17, scope: !193)
|
||||
// CHECK:STDOUT: !200 = !DILocation(line: 66, column: 5, scope: !193)
|
||||
// CHECK:STDOUT: !201 = !{!194}
|
||||
// CHECK:STDOUT: !202 = distinct !DISubprogram(name: "AsInt", linkageName: "_CAsInt.Int.9452f4c51951679b.Core:AnyInt.Core.be1e879c1ad406d8", scope: null, file: !124, line: 59, type: !168, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !209)
|
||||
// CHECK:STDOUT: !203 = !DILocalVariable(arg: 1, scope: !202, type: !6)
|
||||
// CHECK:STDOUT: !208 = !DILocation(line: 59, column: 28, scope: !202)
|
||||
// CHECK:STDOUT: !209 = !{!203}
|
||||
// CHECK:STDOUT:
|
||||
Reference in new issue
Block a user