mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 07:34:45 +01:00
Classify classes with no struct fields as trivially destructible (#7846)
This commit is contained in:
@@ -50,9 +50,9 @@ fn VectorizedWithOptSpeed(a: array(i32, 65536)*) {
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define i32 @_CCallNoInlineWithOptSize.Main() local_unnamed_addr #0 !dbg !16 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: %Rand.call.loc4_15.i = tail call i32 @_CRand.Main() #0, !dbg !89
|
||||
// CHECK:STDOUT: %Rand.call.loc4_24.i = tail call i32 @_CRand.Main() #0, !dbg !90
|
||||
// CHECK:STDOUT: %Int.as.AddWith.impl.Op.call.i = add i32 %Rand.call.loc4_24.i, %Rand.call.loc4_15.i, !dbg !89
|
||||
// CHECK:STDOUT: %Rand.call.loc4_15.i = tail call i32 @_CRand.Main() #0, !dbg !85
|
||||
// CHECK:STDOUT: %Rand.call.loc4_24.i = tail call i32 @_CRand.Main() #0, !dbg !86
|
||||
// CHECK:STDOUT: %Int.as.AddWith.impl.Op.call.i = add i32 %Rand.call.loc4_24.i, %Rand.call.loc4_15.i, !dbg !85
|
||||
// CHECK:STDOUT: ret i32 %Int.as.AddWith.impl.Op.call.i, !dbg !20
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
@@ -68,7 +68,7 @@ fn VectorizedWithOptSpeed(a: array(i32, 65536)*) {
|
||||
// CHECK:STDOUT: %Int.as.MulAssignWith.impl.Op.call = load i32, ptr %.loc16_11.array.index, align 4, !dbg !31
|
||||
// CHECK:STDOUT: %Int.as.MulAssignWith.impl.Op.call1 = shl i32 %Int.as.MulAssignWith.impl.Op.call, 1, !dbg !31
|
||||
// CHECK:STDOUT: store i32 %Int.as.MulAssignWith.impl.Op.call1, ptr %.loc16_11.array.index, align 4, !dbg !31
|
||||
// CHECK:STDOUT: %1 = add nuw nsw i32 %n.var.03, 1, !dbg !100
|
||||
// CHECK:STDOUT: %1 = add nuw nsw i32 %n.var.03, 1, !dbg !94
|
||||
// CHECK:STDOUT: %Int.as.OrderedWith.impl.Less.call = icmp samesign ult i32 %n.var.03, 65535, !dbg !27
|
||||
// CHECK:STDOUT: br i1 %Int.as.OrderedWith.impl.Less.call, label %while.body, label %while.done, !dbg !26
|
||||
// CHECK:STDOUT:
|
||||
@@ -88,22 +88,16 @@ fn VectorizedWithOptSpeed(a: array(i32, 65536)*) {
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSubobjectDestroy.f58524831c37807e:core.Destroy.Core"(ptr %self) local_unnamed_addr #0 !dbg !41 {
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.f58524831c37807e:core.Destroy.Core"(ptr %self) local_unnamed_addr #0 !dbg !41 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: ret void, !dbg !43
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.f58524831c37807e:core.Destroy.Core"(ptr %self) local_unnamed_addr #0 !dbg !45 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: ret void, !dbg !47
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: attributes #0 = { nounwind }
|
||||
// CHECK:STDOUT: attributes #1 = { nofree norecurse nosync nounwind memory(argmem: readwrite) }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: !llvm.dbg.cu = !{!1}
|
||||
// CHECK:STDOUT: !llvm.module.flags = !{!83, !84}
|
||||
// CHECK:STDOUT: !llvm.module.flags = !{!79, !80}
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: !0 = !DIFile(filename: "foo.carbon", directory: "")
|
||||
// CHECK:STDOUT: !1 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !0, producer: "carbon", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug)
|
||||
@@ -132,30 +126,26 @@ fn VectorizedWithOptSpeed(a: array(i32, 65536)*) {
|
||||
// CHECK:STDOUT: !38 = !DILocalVariable(arg: 1, scope: !37, type: !2)
|
||||
// CHECK:STDOUT: !39 = !DILocation(line: 14, column: 3, scope: !37)
|
||||
// CHECK:STDOUT: !40 = !{!38}
|
||||
// CHECK:STDOUT: !41 = distinct !DISubprogram(name: "SubobjectDestroy", linkageName: "_CSubobjectDestroy.f58524831c37807e:core.Destroy.Core", scope: null, file: !0, line: 14, type: !9, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !44)
|
||||
// CHECK:STDOUT: !41 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.f58524831c37807e:core.Destroy.Core", scope: null, file: !0, line: 14, type: !9, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !44)
|
||||
// CHECK:STDOUT: !42 = !DILocalVariable(arg: 1, scope: !41, type: !2)
|
||||
// CHECK:STDOUT: !43 = !DILocation(line: 14, column: 3, scope: !41)
|
||||
// CHECK:STDOUT: !44 = !{!42}
|
||||
// CHECK:STDOUT: !45 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.f58524831c37807e:core.Destroy.Core", scope: null, file: !0, line: 14, type: !9, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !48)
|
||||
// CHECK:STDOUT: !46 = !DILocalVariable(arg: 1, scope: !45, type: !2)
|
||||
// CHECK:STDOUT: !47 = !DILocation(line: 14, column: 3, scope: !45)
|
||||
// CHECK:STDOUT: !48 = !{!46}
|
||||
// CHECK:STDOUT: !49 = !DIFile(filename: "{{.*}}/prelude/types/int.carbon", directory: "")
|
||||
// CHECK:STDOUT: !50 = distinct !DISubprogram(name: "Op", linkageName: "_COp.Int.9452f4c51951679b.Core:Inc.Core.be1e879c1ad406d8", scope: null, file: !49, line: 396, type: !9, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !57)
|
||||
// CHECK:STDOUT: !51 = !DILocalVariable(arg: 1, scope: !50, type: !2)
|
||||
// CHECK:STDOUT: !54 = !{null, !2, !2}
|
||||
// CHECK:STDOUT: !55 = !DISubroutineType(types: !54)
|
||||
// CHECK:STDOUT: !57 = !{!51}
|
||||
// CHECK:STDOUT: !58 = distinct !DISubprogram(name: "Op", linkageName: "_COp:thunk:AddAssignWith.39e2e78a3c2e036d.Core:Int.9452f4c51951679b.Core:AddAssignWith.bcc2a64c00f3554f.Core.83481f1872d67895", scope: null, file: !49, line: 331, type: !55, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !65)
|
||||
// CHECK:STDOUT: !59 = !DILocalVariable(arg: 1, scope: !58, type: !2)
|
||||
// CHECK:STDOUT: !60 = !DILocalVariable(arg: 2, scope: !58, type: !2)
|
||||
// CHECK:STDOUT: !65 = !{!59, !60}
|
||||
// CHECK:STDOUT: !83 = !{i32 7, !"Dwarf Version", i32 5}
|
||||
// CHECK:STDOUT: !84 = !{i32 2, !"Debug Info Version", i32 3}
|
||||
// CHECK:STDOUT: !88 = distinct !DILocation(line: 9, column: 10, scope: !16)
|
||||
// CHECK:STDOUT: !89 = distinct !DILocation(line: 4, column: 10, scope: !10, inlinedAt: !88)
|
||||
// CHECK:STDOUT: !90 = distinct !DILocation(line: 4, column: 19, scope: !10, inlinedAt: !88)
|
||||
// CHECK:STDOUT: !98 = distinct !DILocation(line: 17, column: 5, scope: !21)
|
||||
// CHECK:STDOUT: !99 = distinct !DILocation(line: 398, column: 5, scope: !50, inlinedAt: !98)
|
||||
// CHECK:STDOUT: !100 = distinct !DILocation(line: 331, column: 3, scope: !58, inlinedAt: !99)
|
||||
// CHECK:STDOUT: !45 = !DIFile(filename: "{{.*}}/prelude/types/int.carbon", directory: "")
|
||||
// CHECK:STDOUT: !46 = distinct !DISubprogram(name: "Op", linkageName: "_COp.Int.9452f4c51951679b.Core:Inc.Core.be1e879c1ad406d8", scope: null, file: !45, line: 396, type: !9, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !53)
|
||||
// CHECK:STDOUT: !47 = !DILocalVariable(arg: 1, scope: !46, type: !2)
|
||||
// CHECK:STDOUT: !50 = !{null, !2, !2}
|
||||
// CHECK:STDOUT: !51 = !DISubroutineType(types: !50)
|
||||
// CHECK:STDOUT: !53 = !{!47}
|
||||
// CHECK:STDOUT: !54 = distinct !DISubprogram(name: "Op", linkageName: "_COp:thunk:AddAssignWith.39e2e78a3c2e036d.Core:Int.9452f4c51951679b.Core:AddAssignWith.bcc2a64c00f3554f.Core.83481f1872d67895", scope: null, file: !45, line: 331, type: !51, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !61)
|
||||
// CHECK:STDOUT: !55 = !DILocalVariable(arg: 1, scope: !54, type: !2)
|
||||
// CHECK:STDOUT: !56 = !DILocalVariable(arg: 2, scope: !54, type: !2)
|
||||
// CHECK:STDOUT: !61 = !{!55, !56}
|
||||
// CHECK:STDOUT: !79 = !{i32 7, !"Dwarf Version", i32 5}
|
||||
// CHECK:STDOUT: !80 = !{i32 2, !"Debug Info Version", i32 3}
|
||||
// CHECK:STDOUT: !84 = distinct !DILocation(line: 9, column: 10, scope: !16)
|
||||
// CHECK:STDOUT: !85 = distinct !DILocation(line: 4, column: 10, scope: !10, inlinedAt: !84)
|
||||
// CHECK:STDOUT: !86 = distinct !DILocation(line: 4, column: 19, scope: !10, inlinedAt: !84)
|
||||
// CHECK:STDOUT: !92 = distinct !DILocation(line: 17, column: 5, scope: !21)
|
||||
// CHECK:STDOUT: !93 = distinct !DILocation(line: 398, column: 5, scope: !46, inlinedAt: !92)
|
||||
// CHECK:STDOUT: !94 = distinct !DILocation(line: 331, column: 3, scope: !54, inlinedAt: !93)
|
||||
// CHECK:STDOUT:
|
||||
|
||||
@@ -50,9 +50,9 @@ fn VectorizedWithOptSpeed(a: array(i32, 65536)*) {
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define i32 @_CCallNoInlineWithOptSize.Main() local_unnamed_addr #0 !dbg !16 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: %Rand.call.loc4_15.i = tail call i32 @_CRand.Main() #0, !dbg !89
|
||||
// CHECK:STDOUT: %Rand.call.loc4_24.i = tail call i32 @_CRand.Main() #0, !dbg !90
|
||||
// CHECK:STDOUT: %Int.as.AddWith.impl.Op.call.i = add i32 %Rand.call.loc4_24.i, %Rand.call.loc4_15.i, !dbg !89
|
||||
// CHECK:STDOUT: %Rand.call.loc4_15.i = tail call i32 @_CRand.Main() #0, !dbg !85
|
||||
// CHECK:STDOUT: %Rand.call.loc4_24.i = tail call i32 @_CRand.Main() #0, !dbg !86
|
||||
// CHECK:STDOUT: %Int.as.AddWith.impl.Op.call.i = add i32 %Rand.call.loc4_24.i, %Rand.call.loc4_15.i, !dbg !85
|
||||
// CHECK:STDOUT: ret i32 %Int.as.AddWith.impl.Op.call.i, !dbg !20
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
@@ -68,7 +68,7 @@ fn VectorizedWithOptSpeed(a: array(i32, 65536)*) {
|
||||
// CHECK:STDOUT: %Int.as.MulAssignWith.impl.Op.call = load i32, ptr %.loc16_11.array.index, align 4, !dbg !31
|
||||
// CHECK:STDOUT: %Int.as.MulAssignWith.impl.Op.call1 = shl i32 %Int.as.MulAssignWith.impl.Op.call, 1, !dbg !31
|
||||
// CHECK:STDOUT: store i32 %Int.as.MulAssignWith.impl.Op.call1, ptr %.loc16_11.array.index, align 4, !dbg !31
|
||||
// CHECK:STDOUT: %1 = add nuw nsw i32 %n.var.03, 1, !dbg !100
|
||||
// CHECK:STDOUT: %1 = add nuw nsw i32 %n.var.03, 1, !dbg !94
|
||||
// CHECK:STDOUT: %Int.as.OrderedWith.impl.Less.call = icmp samesign ult i32 %n.var.03, 65535, !dbg !27
|
||||
// CHECK:STDOUT: br i1 %Int.as.OrderedWith.impl.Less.call, label %while.body, label %while.done, !dbg !26
|
||||
// CHECK:STDOUT:
|
||||
@@ -88,22 +88,16 @@ fn VectorizedWithOptSpeed(a: array(i32, 65536)*) {
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSubobjectDestroy.f58524831c37807e:core.Destroy.Core"(ptr %self) local_unnamed_addr #0 !dbg !41 {
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.f58524831c37807e:core.Destroy.Core"(ptr %self) local_unnamed_addr #0 !dbg !41 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: ret void, !dbg !43
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.f58524831c37807e:core.Destroy.Core"(ptr %self) local_unnamed_addr #0 !dbg !45 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: ret void, !dbg !47
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: attributes #0 = { nounwind }
|
||||
// CHECK:STDOUT: attributes #1 = { nofree norecurse nosync nounwind memory(argmem: readwrite) }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: !llvm.dbg.cu = !{!1}
|
||||
// CHECK:STDOUT: !llvm.module.flags = !{!83, !84}
|
||||
// CHECK:STDOUT: !llvm.module.flags = !{!79, !80}
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: !0 = !DIFile(filename: "foo.carbon", directory: "")
|
||||
// CHECK:STDOUT: !1 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !0, producer: "carbon", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug)
|
||||
@@ -132,30 +126,26 @@ fn VectorizedWithOptSpeed(a: array(i32, 65536)*) {
|
||||
// CHECK:STDOUT: !38 = !DILocalVariable(arg: 1, scope: !37, type: !2)
|
||||
// CHECK:STDOUT: !39 = !DILocation(line: 14, column: 3, scope: !37)
|
||||
// CHECK:STDOUT: !40 = !{!38}
|
||||
// CHECK:STDOUT: !41 = distinct !DISubprogram(name: "SubobjectDestroy", linkageName: "_CSubobjectDestroy.f58524831c37807e:core.Destroy.Core", scope: null, file: !0, line: 14, type: !9, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !44)
|
||||
// CHECK:STDOUT: !41 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.f58524831c37807e:core.Destroy.Core", scope: null, file: !0, line: 14, type: !9, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !44)
|
||||
// CHECK:STDOUT: !42 = !DILocalVariable(arg: 1, scope: !41, type: !2)
|
||||
// CHECK:STDOUT: !43 = !DILocation(line: 14, column: 3, scope: !41)
|
||||
// CHECK:STDOUT: !44 = !{!42}
|
||||
// CHECK:STDOUT: !45 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.f58524831c37807e:core.Destroy.Core", scope: null, file: !0, line: 14, type: !9, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !48)
|
||||
// CHECK:STDOUT: !46 = !DILocalVariable(arg: 1, scope: !45, type: !2)
|
||||
// CHECK:STDOUT: !47 = !DILocation(line: 14, column: 3, scope: !45)
|
||||
// CHECK:STDOUT: !48 = !{!46}
|
||||
// CHECK:STDOUT: !49 = !DIFile(filename: "{{.*}}/prelude/types/int.carbon", directory: "")
|
||||
// CHECK:STDOUT: !50 = distinct !DISubprogram(name: "Op", linkageName: "_COp.Int.9452f4c51951679b.Core:Inc.Core.be1e879c1ad406d8", scope: null, file: !49, line: 396, type: !9, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !57)
|
||||
// CHECK:STDOUT: !51 = !DILocalVariable(arg: 1, scope: !50, type: !2)
|
||||
// CHECK:STDOUT: !54 = !{null, !2, !2}
|
||||
// CHECK:STDOUT: !55 = !DISubroutineType(types: !54)
|
||||
// CHECK:STDOUT: !57 = !{!51}
|
||||
// CHECK:STDOUT: !58 = distinct !DISubprogram(name: "Op", linkageName: "_COp:thunk:AddAssignWith.39e2e78a3c2e036d.Core:Int.9452f4c51951679b.Core:AddAssignWith.bcc2a64c00f3554f.Core.83481f1872d67895", scope: null, file: !49, line: 331, type: !55, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !65)
|
||||
// CHECK:STDOUT: !59 = !DILocalVariable(arg: 1, scope: !58, type: !2)
|
||||
// CHECK:STDOUT: !60 = !DILocalVariable(arg: 2, scope: !58, type: !2)
|
||||
// CHECK:STDOUT: !65 = !{!59, !60}
|
||||
// CHECK:STDOUT: !83 = !{i32 7, !"Dwarf Version", i32 5}
|
||||
// CHECK:STDOUT: !84 = !{i32 2, !"Debug Info Version", i32 3}
|
||||
// CHECK:STDOUT: !88 = distinct !DILocation(line: 9, column: 10, scope: !16)
|
||||
// CHECK:STDOUT: !89 = distinct !DILocation(line: 4, column: 10, scope: !10, inlinedAt: !88)
|
||||
// CHECK:STDOUT: !90 = distinct !DILocation(line: 4, column: 19, scope: !10, inlinedAt: !88)
|
||||
// CHECK:STDOUT: !98 = distinct !DILocation(line: 17, column: 5, scope: !21)
|
||||
// CHECK:STDOUT: !99 = distinct !DILocation(line: 398, column: 5, scope: !50, inlinedAt: !98)
|
||||
// CHECK:STDOUT: !100 = distinct !DILocation(line: 331, column: 3, scope: !58, inlinedAt: !99)
|
||||
// CHECK:STDOUT: !45 = !DIFile(filename: "{{.*}}/prelude/types/int.carbon", directory: "")
|
||||
// CHECK:STDOUT: !46 = distinct !DISubprogram(name: "Op", linkageName: "_COp.Int.9452f4c51951679b.Core:Inc.Core.be1e879c1ad406d8", scope: null, file: !45, line: 396, type: !9, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !53)
|
||||
// CHECK:STDOUT: !47 = !DILocalVariable(arg: 1, scope: !46, type: !2)
|
||||
// CHECK:STDOUT: !50 = !{null, !2, !2}
|
||||
// CHECK:STDOUT: !51 = !DISubroutineType(types: !50)
|
||||
// CHECK:STDOUT: !53 = !{!47}
|
||||
// CHECK:STDOUT: !54 = distinct !DISubprogram(name: "Op", linkageName: "_COp:thunk:AddAssignWith.39e2e78a3c2e036d.Core:Int.9452f4c51951679b.Core:AddAssignWith.bcc2a64c00f3554f.Core.83481f1872d67895", scope: null, file: !45, line: 331, type: !51, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !61)
|
||||
// CHECK:STDOUT: !55 = !DILocalVariable(arg: 1, scope: !54, type: !2)
|
||||
// CHECK:STDOUT: !56 = !DILocalVariable(arg: 2, scope: !54, type: !2)
|
||||
// CHECK:STDOUT: !61 = !{!55, !56}
|
||||
// CHECK:STDOUT: !79 = !{i32 7, !"Dwarf Version", i32 5}
|
||||
// CHECK:STDOUT: !80 = !{i32 2, !"Debug Info Version", i32 3}
|
||||
// CHECK:STDOUT: !84 = distinct !DILocation(line: 9, column: 10, scope: !16)
|
||||
// CHECK:STDOUT: !85 = distinct !DILocation(line: 4, column: 10, scope: !10, inlinedAt: !84)
|
||||
// CHECK:STDOUT: !86 = distinct !DILocation(line: 4, column: 19, scope: !10, inlinedAt: !84)
|
||||
// CHECK:STDOUT: !92 = distinct !DILocation(line: 17, column: 5, scope: !21)
|
||||
// CHECK:STDOUT: !93 = distinct !DILocation(line: 398, column: 5, scope: !46, inlinedAt: !92)
|
||||
// CHECK:STDOUT: !94 = distinct !DILocation(line: 331, column: 3, scope: !54, inlinedAt: !93)
|
||||
// CHECK:STDOUT:
|
||||
|
||||
+44
-55
@@ -88,52 +88,45 @@ fn VectorizedWithOptSpeed(a: array(i32, 65536)*) {
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: noinline nounwind optnone
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSubobjectDestroy.f58524831c37807e:core.Destroy.Core"(ptr %self) #0 !dbg !41 {
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.f58524831c37807e:core.Destroy.Core"(ptr %self) #0 !dbg !41 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: ret void, !dbg !43
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: noinline nounwind optnone
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.f58524831c37807e:core.Destroy.Core"(ptr %self) #0 !dbg !45 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: call void @"_CSubobjectDestroy.f58524831c37807e:core.Destroy.Core"(ptr %self), !dbg !47
|
||||
// CHECK:STDOUT: ret void, !dbg !47
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
|
||||
// CHECK:STDOUT: declare void @llvm.lifetime.start.p0(ptr captures(none)) #1
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: noinline nounwind optnone
|
||||
// CHECK:STDOUT: define linkonce_odr void @"_COp.Int.9452f4c51951679b.Core:Inc.Core.be1e879c1ad406d8"(ptr %self) #0 !dbg !50 {
|
||||
// CHECK:STDOUT: call void @"_COp:thunk:AddAssignWith.39e2e78a3c2e036d.Core:Int.9452f4c51951679b.Core:AddAssignWith.bcc2a64c00f3554f.Core.83481f1872d67895"(ptr %self, i32 1), !dbg !53
|
||||
// CHECK:STDOUT: ret void, !dbg !56
|
||||
// CHECK:STDOUT: define linkonce_odr void @"_COp.Int.9452f4c51951679b.Core:Inc.Core.be1e879c1ad406d8"(ptr %self) #0 !dbg !46 {
|
||||
// CHECK:STDOUT: call void @"_COp:thunk:AddAssignWith.39e2e78a3c2e036d.Core:Int.9452f4c51951679b.Core:AddAssignWith.bcc2a64c00f3554f.Core.83481f1872d67895"(ptr %self, i32 1), !dbg !49
|
||||
// CHECK:STDOUT: ret void, !dbg !52
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: noinline nounwind optnone
|
||||
// CHECK:STDOUT: define linkonce_odr void @"_COp:thunk:AddAssignWith.39e2e78a3c2e036d.Core:Int.9452f4c51951679b.Core:AddAssignWith.bcc2a64c00f3554f.Core.83481f1872d67895"(ptr %self, i32 %other) #0 !dbg !58 {
|
||||
// CHECK:STDOUT: %1 = call i32 @"_CConvert.45e1f8de18643ddf:ImplicitAs.0bc6489996802dd4.Core.bb469f8924cce044"(i32 %other), !dbg !61
|
||||
// CHECK:STDOUT: %2 = load i32, ptr %self, align 4, !dbg !62
|
||||
// CHECK:STDOUT: %3 = add i32 %2, %1, !dbg !62
|
||||
// CHECK:STDOUT: store i32 %3, ptr %self, align 4, !dbg !62
|
||||
// CHECK:STDOUT: ret void, !dbg !62
|
||||
// CHECK:STDOUT: define linkonce_odr void @"_COp:thunk:AddAssignWith.39e2e78a3c2e036d.Core:Int.9452f4c51951679b.Core:AddAssignWith.bcc2a64c00f3554f.Core.83481f1872d67895"(ptr %self, i32 %other) #0 !dbg !54 {
|
||||
// CHECK:STDOUT: %1 = call i32 @"_CConvert.45e1f8de18643ddf:ImplicitAs.0bc6489996802dd4.Core.bb469f8924cce044"(i32 %other), !dbg !57
|
||||
// CHECK:STDOUT: %2 = load i32, ptr %self, align 4, !dbg !58
|
||||
// CHECK:STDOUT: %3 = add i32 %2, %1, !dbg !58
|
||||
// CHECK:STDOUT: store i32 %3, ptr %self, align 4, !dbg !58
|
||||
// CHECK:STDOUT: ret void, !dbg !58
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: noinline nounwind optnone
|
||||
// CHECK:STDOUT: define linkonce_odr i32 @"_CConvert.45e1f8de18643ddf:ImplicitAs.0bc6489996802dd4.Core.bb469f8924cce044"(i32 %self) #0 !dbg !66 {
|
||||
// CHECK:STDOUT: %1 = call i32 @"_CAsInt.Int.9452f4c51951679b.Core:AnyInt.Core.be1e879c1ad406d8"(i32 %self), !dbg !71
|
||||
// CHECK:STDOUT: ret i32 %1, !dbg !73
|
||||
// CHECK:STDOUT: define linkonce_odr i32 @"_CConvert.45e1f8de18643ddf:ImplicitAs.0bc6489996802dd4.Core.bb469f8924cce044"(i32 %self) #0 !dbg !62 {
|
||||
// CHECK:STDOUT: %1 = call i32 @"_CAsInt.Int.9452f4c51951679b.Core:AnyInt.Core.be1e879c1ad406d8"(i32 %self), !dbg !67
|
||||
// CHECK:STDOUT: ret i32 %1, !dbg !69
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: noinline nounwind optnone
|
||||
// CHECK:STDOUT: define linkonce_odr i32 @"_CAsInt.Int.9452f4c51951679b.Core:AnyInt.Core.be1e879c1ad406d8"(i32 %self) #0 !dbg !75 {
|
||||
// CHECK:STDOUT: ret i32 %self, !dbg !81
|
||||
// CHECK:STDOUT: define linkonce_odr i32 @"_CAsInt.Int.9452f4c51951679b.Core:AnyInt.Core.be1e879c1ad406d8"(i32 %self) #0 !dbg !71 {
|
||||
// CHECK:STDOUT: ret i32 %self, !dbg !77
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: attributes #0 = { noinline nounwind optnone }
|
||||
// CHECK:STDOUT: attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: !llvm.dbg.cu = !{!1}
|
||||
// CHECK:STDOUT: !llvm.module.flags = !{!83, !84}
|
||||
// CHECK:STDOUT: !llvm.module.flags = !{!79, !80}
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: !0 = !DIFile(filename: "foo.carbon", directory: "")
|
||||
// CHECK:STDOUT: !1 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !0, producer: "carbon", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug)
|
||||
@@ -167,39 +160,35 @@ fn VectorizedWithOptSpeed(a: array(i32, 65536)*) {
|
||||
// CHECK:STDOUT: !38 = !DILocalVariable(arg: 1, scope: !37, type: !2)
|
||||
// CHECK:STDOUT: !39 = !DILocation(line: 14, column: 3, scope: !37)
|
||||
// CHECK:STDOUT: !40 = !{!38}
|
||||
// CHECK:STDOUT: !41 = distinct !DISubprogram(name: "SubobjectDestroy", linkageName: "_CSubobjectDestroy.f58524831c37807e:core.Destroy.Core", scope: null, file: !0, line: 14, type: !9, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !44)
|
||||
// CHECK:STDOUT: !41 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.f58524831c37807e:core.Destroy.Core", scope: null, file: !0, line: 14, type: !9, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !44)
|
||||
// CHECK:STDOUT: !42 = !DILocalVariable(arg: 1, scope: !41, type: !2)
|
||||
// CHECK:STDOUT: !43 = !DILocation(line: 14, column: 3, scope: !41)
|
||||
// CHECK:STDOUT: !44 = !{!42}
|
||||
// CHECK:STDOUT: !45 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.f58524831c37807e:core.Destroy.Core", scope: null, file: !0, line: 14, type: !9, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !48)
|
||||
// CHECK:STDOUT: !46 = !DILocalVariable(arg: 1, scope: !45, type: !2)
|
||||
// CHECK:STDOUT: !47 = !DILocation(line: 14, column: 3, scope: !45)
|
||||
// CHECK:STDOUT: !48 = !{!46}
|
||||
// CHECK:STDOUT: !49 = !DIFile(filename: "{{.*}}/prelude/types/int.carbon", directory: "")
|
||||
// CHECK:STDOUT: !50 = distinct !DISubprogram(name: "Op", linkageName: "_COp.Int.9452f4c51951679b.Core:Inc.Core.be1e879c1ad406d8", scope: null, file: !49, line: 396, type: !9, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !57)
|
||||
// CHECK:STDOUT: !51 = !DILocalVariable(arg: 1, scope: !50, type: !2)
|
||||
// CHECK:STDOUT: !53 = !DILocation(line: 398, column: 5, scope: !50)
|
||||
// CHECK:STDOUT: !54 = !{null, !2, !2}
|
||||
// CHECK:STDOUT: !55 = !DISubroutineType(types: !54)
|
||||
// CHECK:STDOUT: !56 = !DILocation(line: 396, column: 3, scope: !50)
|
||||
// CHECK:STDOUT: !57 = !{!51}
|
||||
// CHECK:STDOUT: !58 = distinct !DISubprogram(name: "Op", linkageName: "_COp:thunk:AddAssignWith.39e2e78a3c2e036d.Core:Int.9452f4c51951679b.Core:AddAssignWith.bcc2a64c00f3554f.Core.83481f1872d67895", scope: null, file: !49, line: 331, type: !55, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !65)
|
||||
// CHECK:STDOUT: !59 = !DILocalVariable(arg: 1, scope: !58, type: !2)
|
||||
// CHECK:STDOUT: !60 = !DILocalVariable(arg: 2, scope: !58, type: !2)
|
||||
// CHECK:STDOUT: !61 = !DILocation(line: 0, scope: !58)
|
||||
// CHECK:STDOUT: !62 = !DILocation(line: 331, column: 3, scope: !58)
|
||||
// CHECK:STDOUT: !63 = !{!2, !2}
|
||||
// CHECK:STDOUT: !64 = !DISubroutineType(types: !63)
|
||||
// CHECK:STDOUT: !65 = !{!59, !60}
|
||||
// CHECK:STDOUT: !66 = distinct !DISubprogram(name: "Convert", linkageName: "_CConvert.45e1f8de18643ddf:ImplicitAs.0bc6489996802dd4.Core.bb469f8924cce044", scope: null, file: !49, line: 64, type: !64, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !74)
|
||||
// CHECK:STDOUT: !67 = !DILocalVariable(arg: 1, scope: !66, type: !2)
|
||||
// CHECK:STDOUT: !71 = !DILocation(line: 66, column: 17, scope: !66)
|
||||
// CHECK:STDOUT: !73 = !DILocation(line: 66, column: 5, scope: !66)
|
||||
// CHECK:STDOUT: !74 = !{!67}
|
||||
// CHECK:STDOUT: !75 = distinct !DISubprogram(name: "AsInt", linkageName: "_CAsInt.Int.9452f4c51951679b.Core:AnyInt.Core.be1e879c1ad406d8", scope: null, file: !49, line: 59, type: !64, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !82)
|
||||
// CHECK:STDOUT: !76 = !DILocalVariable(arg: 1, scope: !75, type: !2)
|
||||
// CHECK:STDOUT: !81 = !DILocation(line: 59, column: 28, scope: !75)
|
||||
// CHECK:STDOUT: !82 = !{!76}
|
||||
// CHECK:STDOUT: !83 = !{i32 7, !"Dwarf Version", i32 5}
|
||||
// CHECK:STDOUT: !84 = !{i32 2, !"Debug Info Version", i32 3}
|
||||
// CHECK:STDOUT: !45 = !DIFile(filename: "{{.*}}/prelude/types/int.carbon", directory: "")
|
||||
// CHECK:STDOUT: !46 = distinct !DISubprogram(name: "Op", linkageName: "_COp.Int.9452f4c51951679b.Core:Inc.Core.be1e879c1ad406d8", scope: null, file: !45, line: 396, type: !9, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !53)
|
||||
// CHECK:STDOUT: !47 = !DILocalVariable(arg: 1, scope: !46, type: !2)
|
||||
// CHECK:STDOUT: !49 = !DILocation(line: 398, column: 5, scope: !46)
|
||||
// CHECK:STDOUT: !50 = !{null, !2, !2}
|
||||
// CHECK:STDOUT: !51 = !DISubroutineType(types: !50)
|
||||
// CHECK:STDOUT: !52 = !DILocation(line: 396, column: 3, scope: !46)
|
||||
// CHECK:STDOUT: !53 = !{!47}
|
||||
// CHECK:STDOUT: !54 = distinct !DISubprogram(name: "Op", linkageName: "_COp:thunk:AddAssignWith.39e2e78a3c2e036d.Core:Int.9452f4c51951679b.Core:AddAssignWith.bcc2a64c00f3554f.Core.83481f1872d67895", scope: null, file: !45, line: 331, type: !51, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !61)
|
||||
// CHECK:STDOUT: !55 = !DILocalVariable(arg: 1, scope: !54, type: !2)
|
||||
// CHECK:STDOUT: !56 = !DILocalVariable(arg: 2, scope: !54, type: !2)
|
||||
// CHECK:STDOUT: !57 = !DILocation(line: 0, scope: !54)
|
||||
// CHECK:STDOUT: !58 = !DILocation(line: 331, column: 3, scope: !54)
|
||||
// CHECK:STDOUT: !59 = !{!2, !2}
|
||||
// CHECK:STDOUT: !60 = !DISubroutineType(types: !59)
|
||||
// CHECK:STDOUT: !61 = !{!55, !56}
|
||||
// CHECK:STDOUT: !62 = distinct !DISubprogram(name: "Convert", linkageName: "_CConvert.45e1f8de18643ddf:ImplicitAs.0bc6489996802dd4.Core.bb469f8924cce044", scope: null, file: !45, line: 64, type: !60, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !70)
|
||||
// CHECK:STDOUT: !63 = !DILocalVariable(arg: 1, scope: !62, type: !2)
|
||||
// CHECK:STDOUT: !67 = !DILocation(line: 66, column: 17, scope: !62)
|
||||
// CHECK:STDOUT: !69 = !DILocation(line: 66, column: 5, scope: !62)
|
||||
// CHECK:STDOUT: !70 = !{!63}
|
||||
// CHECK:STDOUT: !71 = distinct !DISubprogram(name: "AsInt", linkageName: "_CAsInt.Int.9452f4c51951679b.Core:AnyInt.Core.be1e879c1ad406d8", scope: null, file: !45, line: 59, type: !60, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !78)
|
||||
// CHECK:STDOUT: !72 = !DILocalVariable(arg: 1, scope: !71, type: !2)
|
||||
// CHECK:STDOUT: !77 = !DILocation(line: 59, column: 28, scope: !71)
|
||||
// CHECK:STDOUT: !78 = !{!72}
|
||||
// CHECK:STDOUT: !79 = !{i32 7, !"Dwarf Version", i32 5}
|
||||
// CHECK:STDOUT: !80 = !{i32 2, !"Debug Info Version", i32 3}
|
||||
// CHECK:STDOUT:
|
||||
|
||||
+44
-55
@@ -87,45 +87,38 @@ fn VectorizedWithOptSpeed(a: array(i32, 65536)*) {
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: minsize nounwind optsize
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSubobjectDestroy.f58524831c37807e:core.Destroy.Core"(ptr %self) #0 !dbg !41 {
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.f58524831c37807e:core.Destroy.Core"(ptr %self) #0 !dbg !41 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: ret void, !dbg !43
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: minsize nounwind optsize
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.f58524831c37807e:core.Destroy.Core"(ptr %self) #0 !dbg !45 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: call void @"_CSubobjectDestroy.f58524831c37807e:core.Destroy.Core"(ptr %self), !dbg !47
|
||||
// CHECK:STDOUT: ret void, !dbg !47
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
|
||||
// CHECK:STDOUT: declare void @llvm.lifetime.start.p0(ptr captures(none)) #1
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: minsize nounwind optsize
|
||||
// CHECK:STDOUT: define linkonce_odr void @"_COp.Int.9452f4c51951679b.Core:Inc.Core.be1e879c1ad406d8"(ptr %self) #0 !dbg !50 {
|
||||
// CHECK:STDOUT: call void @"_COp:thunk:AddAssignWith.39e2e78a3c2e036d.Core:Int.9452f4c51951679b.Core:AddAssignWith.bcc2a64c00f3554f.Core.83481f1872d67895"(ptr %self, i32 1), !dbg !53
|
||||
// CHECK:STDOUT: ret void, !dbg !56
|
||||
// CHECK:STDOUT: define linkonce_odr void @"_COp.Int.9452f4c51951679b.Core:Inc.Core.be1e879c1ad406d8"(ptr %self) #0 !dbg !46 {
|
||||
// CHECK:STDOUT: call void @"_COp:thunk:AddAssignWith.39e2e78a3c2e036d.Core:Int.9452f4c51951679b.Core:AddAssignWith.bcc2a64c00f3554f.Core.83481f1872d67895"(ptr %self, i32 1), !dbg !49
|
||||
// CHECK:STDOUT: ret void, !dbg !52
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: alwaysinline minsize nounwind optsize
|
||||
// CHECK:STDOUT: define linkonce_odr void @"_COp:thunk:AddAssignWith.39e2e78a3c2e036d.Core:Int.9452f4c51951679b.Core:AddAssignWith.bcc2a64c00f3554f.Core.83481f1872d67895"(ptr %self, i32 %other) #2 !dbg !58 {
|
||||
// CHECK:STDOUT: %1 = call i32 @"_CConvert.45e1f8de18643ddf:ImplicitAs.0bc6489996802dd4.Core.bb469f8924cce044"(i32 %other), !dbg !61
|
||||
// CHECK:STDOUT: %2 = load i32, ptr %self, align 4, !dbg !62
|
||||
// CHECK:STDOUT: %3 = add i32 %2, %1, !dbg !62
|
||||
// CHECK:STDOUT: store i32 %3, ptr %self, align 4, !dbg !62
|
||||
// CHECK:STDOUT: ret void, !dbg !62
|
||||
// CHECK:STDOUT: define linkonce_odr void @"_COp:thunk:AddAssignWith.39e2e78a3c2e036d.Core:Int.9452f4c51951679b.Core:AddAssignWith.bcc2a64c00f3554f.Core.83481f1872d67895"(ptr %self, i32 %other) #2 !dbg !54 {
|
||||
// CHECK:STDOUT: %1 = call i32 @"_CConvert.45e1f8de18643ddf:ImplicitAs.0bc6489996802dd4.Core.bb469f8924cce044"(i32 %other), !dbg !57
|
||||
// CHECK:STDOUT: %2 = load i32, ptr %self, align 4, !dbg !58
|
||||
// CHECK:STDOUT: %3 = add i32 %2, %1, !dbg !58
|
||||
// CHECK:STDOUT: store i32 %3, ptr %self, align 4, !dbg !58
|
||||
// CHECK:STDOUT: ret void, !dbg !58
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: minsize nounwind optsize
|
||||
// CHECK:STDOUT: define linkonce_odr i32 @"_CConvert.45e1f8de18643ddf:ImplicitAs.0bc6489996802dd4.Core.bb469f8924cce044"(i32 %self) #0 !dbg !66 {
|
||||
// CHECK:STDOUT: %1 = call i32 @"_CAsInt.Int.9452f4c51951679b.Core:AnyInt.Core.be1e879c1ad406d8"(i32 %self), !dbg !71
|
||||
// CHECK:STDOUT: ret i32 %1, !dbg !73
|
||||
// CHECK:STDOUT: define linkonce_odr i32 @"_CConvert.45e1f8de18643ddf:ImplicitAs.0bc6489996802dd4.Core.bb469f8924cce044"(i32 %self) #0 !dbg !62 {
|
||||
// CHECK:STDOUT: %1 = call i32 @"_CAsInt.Int.9452f4c51951679b.Core:AnyInt.Core.be1e879c1ad406d8"(i32 %self), !dbg !67
|
||||
// CHECK:STDOUT: ret i32 %1, !dbg !69
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: minsize nounwind optsize
|
||||
// CHECK:STDOUT: define linkonce_odr i32 @"_CAsInt.Int.9452f4c51951679b.Core:AnyInt.Core.be1e879c1ad406d8"(i32 %self) #0 !dbg !75 {
|
||||
// CHECK:STDOUT: ret i32 %self, !dbg !81
|
||||
// CHECK:STDOUT: define linkonce_odr i32 @"_CAsInt.Int.9452f4c51951679b.Core:AnyInt.Core.be1e879c1ad406d8"(i32 %self) #0 !dbg !71 {
|
||||
// CHECK:STDOUT: ret i32 %self, !dbg !77
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: attributes #0 = { minsize nounwind optsize }
|
||||
@@ -133,7 +126,7 @@ fn VectorizedWithOptSpeed(a: array(i32, 65536)*) {
|
||||
// CHECK:STDOUT: attributes #2 = { alwaysinline minsize nounwind optsize }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: !llvm.dbg.cu = !{!1}
|
||||
// CHECK:STDOUT: !llvm.module.flags = !{!83, !84}
|
||||
// CHECK:STDOUT: !llvm.module.flags = !{!79, !80}
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: !0 = !DIFile(filename: "foo.carbon", directory: "")
|
||||
// CHECK:STDOUT: !1 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !0, producer: "carbon", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug)
|
||||
@@ -167,39 +160,35 @@ fn VectorizedWithOptSpeed(a: array(i32, 65536)*) {
|
||||
// CHECK:STDOUT: !38 = !DILocalVariable(arg: 1, scope: !37, type: !2)
|
||||
// CHECK:STDOUT: !39 = !DILocation(line: 14, column: 3, scope: !37)
|
||||
// CHECK:STDOUT: !40 = !{!38}
|
||||
// CHECK:STDOUT: !41 = distinct !DISubprogram(name: "SubobjectDestroy", linkageName: "_CSubobjectDestroy.f58524831c37807e:core.Destroy.Core", scope: null, file: !0, line: 14, type: !9, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !44)
|
||||
// CHECK:STDOUT: !41 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.f58524831c37807e:core.Destroy.Core", scope: null, file: !0, line: 14, type: !9, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !44)
|
||||
// CHECK:STDOUT: !42 = !DILocalVariable(arg: 1, scope: !41, type: !2)
|
||||
// CHECK:STDOUT: !43 = !DILocation(line: 14, column: 3, scope: !41)
|
||||
// CHECK:STDOUT: !44 = !{!42}
|
||||
// CHECK:STDOUT: !45 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.f58524831c37807e:core.Destroy.Core", scope: null, file: !0, line: 14, type: !9, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !48)
|
||||
// CHECK:STDOUT: !46 = !DILocalVariable(arg: 1, scope: !45, type: !2)
|
||||
// CHECK:STDOUT: !47 = !DILocation(line: 14, column: 3, scope: !45)
|
||||
// CHECK:STDOUT: !48 = !{!46}
|
||||
// CHECK:STDOUT: !49 = !DIFile(filename: "{{.*}}/prelude/types/int.carbon", directory: "")
|
||||
// CHECK:STDOUT: !50 = distinct !DISubprogram(name: "Op", linkageName: "_COp.Int.9452f4c51951679b.Core:Inc.Core.be1e879c1ad406d8", scope: null, file: !49, line: 396, type: !9, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !57)
|
||||
// CHECK:STDOUT: !51 = !DILocalVariable(arg: 1, scope: !50, type: !2)
|
||||
// CHECK:STDOUT: !53 = !DILocation(line: 398, column: 5, scope: !50)
|
||||
// CHECK:STDOUT: !54 = !{null, !2, !2}
|
||||
// CHECK:STDOUT: !55 = !DISubroutineType(types: !54)
|
||||
// CHECK:STDOUT: !56 = !DILocation(line: 396, column: 3, scope: !50)
|
||||
// CHECK:STDOUT: !57 = !{!51}
|
||||
// CHECK:STDOUT: !58 = distinct !DISubprogram(name: "Op", linkageName: "_COp:thunk:AddAssignWith.39e2e78a3c2e036d.Core:Int.9452f4c51951679b.Core:AddAssignWith.bcc2a64c00f3554f.Core.83481f1872d67895", scope: null, file: !49, line: 331, type: !55, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !65)
|
||||
// CHECK:STDOUT: !59 = !DILocalVariable(arg: 1, scope: !58, type: !2)
|
||||
// CHECK:STDOUT: !60 = !DILocalVariable(arg: 2, scope: !58, type: !2)
|
||||
// CHECK:STDOUT: !61 = !DILocation(line: 0, scope: !58)
|
||||
// CHECK:STDOUT: !62 = !DILocation(line: 331, column: 3, scope: !58)
|
||||
// CHECK:STDOUT: !63 = !{!2, !2}
|
||||
// CHECK:STDOUT: !64 = !DISubroutineType(types: !63)
|
||||
// CHECK:STDOUT: !65 = !{!59, !60}
|
||||
// CHECK:STDOUT: !66 = distinct !DISubprogram(name: "Convert", linkageName: "_CConvert.45e1f8de18643ddf:ImplicitAs.0bc6489996802dd4.Core.bb469f8924cce044", scope: null, file: !49, line: 64, type: !64, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !74)
|
||||
// CHECK:STDOUT: !67 = !DILocalVariable(arg: 1, scope: !66, type: !2)
|
||||
// CHECK:STDOUT: !71 = !DILocation(line: 66, column: 17, scope: !66)
|
||||
// CHECK:STDOUT: !73 = !DILocation(line: 66, column: 5, scope: !66)
|
||||
// CHECK:STDOUT: !74 = !{!67}
|
||||
// CHECK:STDOUT: !75 = distinct !DISubprogram(name: "AsInt", linkageName: "_CAsInt.Int.9452f4c51951679b.Core:AnyInt.Core.be1e879c1ad406d8", scope: null, file: !49, line: 59, type: !64, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !82)
|
||||
// CHECK:STDOUT: !76 = !DILocalVariable(arg: 1, scope: !75, type: !2)
|
||||
// CHECK:STDOUT: !81 = !DILocation(line: 59, column: 28, scope: !75)
|
||||
// CHECK:STDOUT: !82 = !{!76}
|
||||
// CHECK:STDOUT: !83 = !{i32 7, !"Dwarf Version", i32 5}
|
||||
// CHECK:STDOUT: !84 = !{i32 2, !"Debug Info Version", i32 3}
|
||||
// CHECK:STDOUT: !45 = !DIFile(filename: "{{.*}}/prelude/types/int.carbon", directory: "")
|
||||
// CHECK:STDOUT: !46 = distinct !DISubprogram(name: "Op", linkageName: "_COp.Int.9452f4c51951679b.Core:Inc.Core.be1e879c1ad406d8", scope: null, file: !45, line: 396, type: !9, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !53)
|
||||
// CHECK:STDOUT: !47 = !DILocalVariable(arg: 1, scope: !46, type: !2)
|
||||
// CHECK:STDOUT: !49 = !DILocation(line: 398, column: 5, scope: !46)
|
||||
// CHECK:STDOUT: !50 = !{null, !2, !2}
|
||||
// CHECK:STDOUT: !51 = !DISubroutineType(types: !50)
|
||||
// CHECK:STDOUT: !52 = !DILocation(line: 396, column: 3, scope: !46)
|
||||
// CHECK:STDOUT: !53 = !{!47}
|
||||
// CHECK:STDOUT: !54 = distinct !DISubprogram(name: "Op", linkageName: "_COp:thunk:AddAssignWith.39e2e78a3c2e036d.Core:Int.9452f4c51951679b.Core:AddAssignWith.bcc2a64c00f3554f.Core.83481f1872d67895", scope: null, file: !45, line: 331, type: !51, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !61)
|
||||
// CHECK:STDOUT: !55 = !DILocalVariable(arg: 1, scope: !54, type: !2)
|
||||
// CHECK:STDOUT: !56 = !DILocalVariable(arg: 2, scope: !54, type: !2)
|
||||
// CHECK:STDOUT: !57 = !DILocation(line: 0, scope: !54)
|
||||
// CHECK:STDOUT: !58 = !DILocation(line: 331, column: 3, scope: !54)
|
||||
// CHECK:STDOUT: !59 = !{!2, !2}
|
||||
// CHECK:STDOUT: !60 = !DISubroutineType(types: !59)
|
||||
// CHECK:STDOUT: !61 = !{!55, !56}
|
||||
// CHECK:STDOUT: !62 = distinct !DISubprogram(name: "Convert", linkageName: "_CConvert.45e1f8de18643ddf:ImplicitAs.0bc6489996802dd4.Core.bb469f8924cce044", scope: null, file: !45, line: 64, type: !60, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !70)
|
||||
// CHECK:STDOUT: !63 = !DILocalVariable(arg: 1, scope: !62, type: !2)
|
||||
// CHECK:STDOUT: !67 = !DILocation(line: 66, column: 17, scope: !62)
|
||||
// CHECK:STDOUT: !69 = !DILocation(line: 66, column: 5, scope: !62)
|
||||
// CHECK:STDOUT: !70 = !{!63}
|
||||
// CHECK:STDOUT: !71 = distinct !DISubprogram(name: "AsInt", linkageName: "_CAsInt.Int.9452f4c51951679b.Core:AnyInt.Core.be1e879c1ad406d8", scope: null, file: !45, line: 59, type: !60, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !78)
|
||||
// CHECK:STDOUT: !72 = !DILocalVariable(arg: 1, scope: !71, type: !2)
|
||||
// CHECK:STDOUT: !77 = !DILocation(line: 59, column: 28, scope: !71)
|
||||
// CHECK:STDOUT: !78 = !{!72}
|
||||
// CHECK:STDOUT: !79 = !{i32 7, !"Dwarf Version", i32 5}
|
||||
// CHECK:STDOUT: !80 = !{i32 2, !"Debug Info Version", i32 3}
|
||||
// CHECK:STDOUT:
|
||||
|
||||
@@ -50,9 +50,9 @@ fn VectorizedWithOptSpeed(a: array(i32, 65536)*) {
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define i32 @_CCallNoInlineWithOptSize.Main() local_unnamed_addr #0 !dbg !16 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: %Rand.call.loc4_15.i = tail call i32 @_CRand.Main() #0, !dbg !89
|
||||
// CHECK:STDOUT: %Rand.call.loc4_24.i = tail call i32 @_CRand.Main() #0, !dbg !90
|
||||
// CHECK:STDOUT: %Int.as.AddWith.impl.Op.call.i = add i32 %Rand.call.loc4_24.i, %Rand.call.loc4_15.i, !dbg !89
|
||||
// CHECK:STDOUT: %Rand.call.loc4_15.i = tail call i32 @_CRand.Main() #0, !dbg !85
|
||||
// CHECK:STDOUT: %Rand.call.loc4_24.i = tail call i32 @_CRand.Main() #0, !dbg !86
|
||||
// CHECK:STDOUT: %Int.as.AddWith.impl.Op.call.i = add i32 %Rand.call.loc4_24.i, %Rand.call.loc4_15.i, !dbg !85
|
||||
// CHECK:STDOUT: ret i32 %Int.as.AddWith.impl.Op.call.i, !dbg !20
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
@@ -62,7 +62,7 @@ fn VectorizedWithOptSpeed(a: array(i32, 65536)*) {
|
||||
// CHECK:STDOUT: br label %vector.body, !dbg !26
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: vector.body: ; preds = %vector.body, %entry
|
||||
// CHECK:STDOUT: %index = phi i32 [ 0, %entry ], [ %index.next.1, %vector.body ], !dbg !100
|
||||
// CHECK:STDOUT: %index = phi i32 [ 0, %entry ], [ %index.next.1, %vector.body ], !dbg !94
|
||||
// CHECK:STDOUT: %0 = zext nneg i32 %index to i64, !dbg !31
|
||||
// CHECK:STDOUT: %1 = getelementptr inbounds nuw [4 x i8], ptr %a, i64 %0, !dbg !31
|
||||
// CHECK:STDOUT: %2 = getelementptr inbounds nuw i8, ptr %1, i64 16, !dbg !31
|
||||
@@ -82,9 +82,9 @@ fn VectorizedWithOptSpeed(a: array(i32, 65536)*) {
|
||||
// CHECK:STDOUT: %10 = shl <4 x i32> %wide.load4.1, splat (i32 1), !dbg !31
|
||||
// CHECK:STDOUT: store <4 x i32> %9, ptr %7, align 4, !dbg !31
|
||||
// CHECK:STDOUT: store <4 x i32> %10, ptr %8, align 4, !dbg !31
|
||||
// CHECK:STDOUT: %index.next.1 = add nuw nsw i32 %index, 16, !dbg !100
|
||||
// CHECK:STDOUT: %index.next.1 = add nuw nsw i32 %index, 16, !dbg !94
|
||||
// CHECK:STDOUT: %11 = icmp eq i32 %index.next.1, 65536, !dbg !26
|
||||
// CHECK:STDOUT: br i1 %11, label %while.done, label %vector.body, !dbg !26, !llvm.loop !108
|
||||
// CHECK:STDOUT: br i1 %11, label %while.done, label %vector.body, !dbg !26, !llvm.loop !102
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: while.done: ; preds = %vector.body
|
||||
// CHECK:STDOUT: ret void, !dbg !35
|
||||
@@ -104,22 +104,16 @@ fn VectorizedWithOptSpeed(a: array(i32, 65536)*) {
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSubobjectDestroy.f58524831c37807e:core.Destroy.Core"(ptr %self) local_unnamed_addr #0 !dbg !41 {
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.f58524831c37807e:core.Destroy.Core"(ptr %self) local_unnamed_addr #0 !dbg !41 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: ret void, !dbg !43
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.f58524831c37807e:core.Destroy.Core"(ptr %self) local_unnamed_addr #0 !dbg !45 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: ret void, !dbg !47
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: attributes #0 = { nounwind }
|
||||
// CHECK:STDOUT: attributes #1 = { nofree norecurse nosync nounwind memory(argmem: readwrite) }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: !llvm.dbg.cu = !{!1}
|
||||
// CHECK:STDOUT: !llvm.module.flags = !{!83, !84}
|
||||
// CHECK:STDOUT: !llvm.module.flags = !{!79, !80}
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: !0 = !DIFile(filename: "foo.carbon", directory: "")
|
||||
// CHECK:STDOUT: !1 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !0, producer: "carbon", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug)
|
||||
@@ -147,33 +141,29 @@ fn VectorizedWithOptSpeed(a: array(i32, 65536)*) {
|
||||
// CHECK:STDOUT: !38 = !DILocalVariable(arg: 1, scope: !37, type: !2)
|
||||
// CHECK:STDOUT: !39 = !DILocation(line: 14, column: 3, scope: !37)
|
||||
// CHECK:STDOUT: !40 = !{!38}
|
||||
// CHECK:STDOUT: !41 = distinct !DISubprogram(name: "SubobjectDestroy", linkageName: "_CSubobjectDestroy.f58524831c37807e:core.Destroy.Core", scope: null, file: !0, line: 14, type: !9, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !44)
|
||||
// CHECK:STDOUT: !41 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.f58524831c37807e:core.Destroy.Core", scope: null, file: !0, line: 14, type: !9, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !44)
|
||||
// CHECK:STDOUT: !42 = !DILocalVariable(arg: 1, scope: !41, type: !2)
|
||||
// CHECK:STDOUT: !43 = !DILocation(line: 14, column: 3, scope: !41)
|
||||
// CHECK:STDOUT: !44 = !{!42}
|
||||
// CHECK:STDOUT: !45 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.f58524831c37807e:core.Destroy.Core", scope: null, file: !0, line: 14, type: !9, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !48)
|
||||
// CHECK:STDOUT: !46 = !DILocalVariable(arg: 1, scope: !45, type: !2)
|
||||
// CHECK:STDOUT: !47 = !DILocation(line: 14, column: 3, scope: !45)
|
||||
// CHECK:STDOUT: !48 = !{!46}
|
||||
// CHECK:STDOUT: !49 = !DIFile(filename: "{{.*}}/prelude/types/int.carbon", directory: "")
|
||||
// CHECK:STDOUT: !50 = distinct !DISubprogram(name: "Op", linkageName: "_COp.Int.9452f4c51951679b.Core:Inc.Core.be1e879c1ad406d8", scope: null, file: !49, line: 396, type: !9, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !57)
|
||||
// CHECK:STDOUT: !51 = !DILocalVariable(arg: 1, scope: !50, type: !2)
|
||||
// CHECK:STDOUT: !54 = !{null, !2, !2}
|
||||
// CHECK:STDOUT: !55 = !DISubroutineType(types: !54)
|
||||
// CHECK:STDOUT: !57 = !{!51}
|
||||
// CHECK:STDOUT: !58 = distinct !DISubprogram(name: "Op", linkageName: "_COp:thunk:AddAssignWith.39e2e78a3c2e036d.Core:Int.9452f4c51951679b.Core:AddAssignWith.bcc2a64c00f3554f.Core.83481f1872d67895", scope: null, file: !49, line: 331, type: !55, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !65)
|
||||
// CHECK:STDOUT: !59 = !DILocalVariable(arg: 1, scope: !58, type: !2)
|
||||
// CHECK:STDOUT: !60 = !DILocalVariable(arg: 2, scope: !58, type: !2)
|
||||
// CHECK:STDOUT: !65 = !{!59, !60}
|
||||
// CHECK:STDOUT: !83 = !{i32 7, !"Dwarf Version", i32 5}
|
||||
// CHECK:STDOUT: !84 = !{i32 2, !"Debug Info Version", i32 3}
|
||||
// CHECK:STDOUT: !88 = distinct !DILocation(line: 9, column: 10, scope: !16)
|
||||
// CHECK:STDOUT: !89 = distinct !DILocation(line: 4, column: 10, scope: !10, inlinedAt: !88)
|
||||
// CHECK:STDOUT: !90 = distinct !DILocation(line: 4, column: 19, scope: !10, inlinedAt: !88)
|
||||
// CHECK:STDOUT: !98 = distinct !DILocation(line: 17, column: 5, scope: !21)
|
||||
// CHECK:STDOUT: !99 = distinct !DILocation(line: 398, column: 5, scope: !50, inlinedAt: !98)
|
||||
// CHECK:STDOUT: !100 = distinct !DILocation(line: 331, column: 3, scope: !58, inlinedAt: !99)
|
||||
// CHECK:STDOUT: !105 = !{!"llvm.loop.isvectorized", i32 1}
|
||||
// CHECK:STDOUT: !107 = !{!"llvm.loop.unroll.runtime.disable"}
|
||||
// CHECK:STDOUT: !108 = distinct !{!108, !105, !107}
|
||||
// CHECK:STDOUT: !45 = !DIFile(filename: "{{.*}}/prelude/types/int.carbon", directory: "")
|
||||
// CHECK:STDOUT: !46 = distinct !DISubprogram(name: "Op", linkageName: "_COp.Int.9452f4c51951679b.Core:Inc.Core.be1e879c1ad406d8", scope: null, file: !45, line: 396, type: !9, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !53)
|
||||
// CHECK:STDOUT: !47 = !DILocalVariable(arg: 1, scope: !46, type: !2)
|
||||
// CHECK:STDOUT: !50 = !{null, !2, !2}
|
||||
// CHECK:STDOUT: !51 = !DISubroutineType(types: !50)
|
||||
// CHECK:STDOUT: !53 = !{!47}
|
||||
// CHECK:STDOUT: !54 = distinct !DISubprogram(name: "Op", linkageName: "_COp:thunk:AddAssignWith.39e2e78a3c2e036d.Core:Int.9452f4c51951679b.Core:AddAssignWith.bcc2a64c00f3554f.Core.83481f1872d67895", scope: null, file: !45, line: 331, type: !51, spFlags: DISPFlagDefinition, unit: !1, retainedNodes: !61)
|
||||
// CHECK:STDOUT: !55 = !DILocalVariable(arg: 1, scope: !54, type: !2)
|
||||
// CHECK:STDOUT: !56 = !DILocalVariable(arg: 2, scope: !54, type: !2)
|
||||
// CHECK:STDOUT: !61 = !{!55, !56}
|
||||
// CHECK:STDOUT: !79 = !{i32 7, !"Dwarf Version", i32 5}
|
||||
// CHECK:STDOUT: !80 = !{i32 2, !"Debug Info Version", i32 3}
|
||||
// CHECK:STDOUT: !84 = distinct !DILocation(line: 9, column: 10, scope: !16)
|
||||
// CHECK:STDOUT: !85 = distinct !DILocation(line: 4, column: 10, scope: !10, inlinedAt: !84)
|
||||
// CHECK:STDOUT: !86 = distinct !DILocation(line: 4, column: 19, scope: !10, inlinedAt: !84)
|
||||
// CHECK:STDOUT: !92 = distinct !DILocation(line: 17, column: 5, scope: !21)
|
||||
// CHECK:STDOUT: !93 = distinct !DILocation(line: 398, column: 5, scope: !46, inlinedAt: !92)
|
||||
// CHECK:STDOUT: !94 = distinct !DILocation(line: 331, column: 3, scope: !54, inlinedAt: !93)
|
||||
// CHECK:STDOUT: !99 = !{!"llvm.loop.isvectorized", i32 1}
|
||||
// CHECK:STDOUT: !101 = !{!"llvm.loop.unroll.runtime.disable"}
|
||||
// CHECK:STDOUT: !102 = distinct !{!102, !99, !101}
|
||||
// CHECK:STDOUT:
|
||||
|
||||
Reference in New Issue
Block a user