mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Add Destroy.SubobjectDestroy as a temporary replacement for Destroy.Op (#7773)
This change partially implements [PR #7362], which revises how objects are destroyed. It is a partial implementation for two reasons: 1. This change moves `Destroy.Op`'s current behaviour into `Destroy.SubobjectDestroy`, but it doesn't add support for objects with non-trivial destruction. 2. `Destroy.SubobjectDestroy` is a workaround for `require impls SubobjectDestroy`. We aren't able to use the latter until the dependents add their requirements' implementations to their own witness tables. [PR #7362]: https://github.com/carbon-language/carbon-lang/pulls/7362
This commit is contained in:
+359
-238
@@ -71,179 +71,247 @@ fn ConvertFromConstVoidPtr(p: const Cpp.void*) -> const i32* {
|
||||
// CHECK:STDOUT: store ptr %U.as_type.as.ImplicitAs.impl.Convert.call, ptr %.loc7_21.2.temp, align 8, !dbg !13
|
||||
// CHECK:STDOUT: %.loc7_21.4 = load ptr, ptr %.loc7_21.2.temp, align 8, !dbg !13
|
||||
// CHECK:STDOUT: call void @_Z13take_void_ptrPv(ptr %.loc7_21.4), !dbg !16
|
||||
// CHECK:STDOUT: call void @"_COp.14b4a412ddf73a96:core.Destroy.Core"(ptr %.loc7_21.2.temp), !dbg !13
|
||||
// CHECK:STDOUT: call void @"_CSelfDestruct.14b4a412ddf73a96:core.Destroy.Core"(ptr %.loc7_21.2.temp), !dbg !13
|
||||
// CHECK:STDOUT: ret void, !dbg !17
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.00ac8ef5084ea134:core.Destroy.Core"(ptr %self) #0 !dbg !20 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: ret void, !dbg !22
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: declare void @_Z13take_void_ptrPv(ptr noundef) #1
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define weak_odr void @"_COp.a7d1b77eb1279818:core.Destroy.Core"(ptr %self) #0 !dbg !19 {
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSubobjectDestroy.a7d1b77eb1279818:core.Destroy.Core"(ptr %self) #0 !dbg !24 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: ret void, !dbg !21
|
||||
// CHECK:STDOUT: ret void, !dbg !26
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define weak_odr void @"_COp.ddbd3dbdb388ab25:core.Destroy.Core"(ptr %self) #0 !dbg !23 {
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.a7d1b77eb1279818:core.Destroy.Core"(ptr %self) #0 !dbg !28 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: ret void, !dbg !25
|
||||
// CHECK:STDOUT: call void @"_CSubobjectDestroy.a7d1b77eb1279818:core.Destroy.Core"(ptr %self), !dbg !30
|
||||
// CHECK:STDOUT: ret void, !dbg !30
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define weak_odr void @"_COp.14b4a412ddf73a96:core.Destroy.Core"(ptr %self) #0 !dbg !27 {
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSubobjectDestroy.174120d4d03791b0:core.Destroy.Core"(ptr %self) #0 !dbg !32 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: ret void, !dbg !29
|
||||
// CHECK:STDOUT: ret void, !dbg !34
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define void @_CPassIntPtr.Main(ptr %a) #0 !dbg !31 {
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.174120d4d03791b0:core.Destroy.Core"(ptr %self) #0 !dbg !36 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: %.loc11_21.2.temp = alloca ptr, align 8, !dbg !34
|
||||
// CHECK:STDOUT: %U.as_type.as.ImplicitAs.impl.Convert.call = call ptr @"_CConvert.538322f9fda4254f:ImplicitAs.a276ba298c70ba87.Core.743bdca835b10868"(ptr %a), !dbg !34
|
||||
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %.loc11_21.2.temp), !dbg !34
|
||||
// CHECK:STDOUT: store ptr %U.as_type.as.ImplicitAs.impl.Convert.call, ptr %.loc11_21.2.temp, align 8, !dbg !34
|
||||
// CHECK:STDOUT: %.loc11_21.4 = load ptr, ptr %.loc11_21.2.temp, align 8, !dbg !34
|
||||
// CHECK:STDOUT: call void @_Z13take_void_ptrPv(ptr %.loc11_21.4), !dbg !35
|
||||
// CHECK:STDOUT: call void @"_COp.14b4a412ddf73a96:core.Destroy.Core"(ptr %.loc11_21.2.temp), !dbg !34
|
||||
// CHECK:STDOUT: ret void, !dbg !36
|
||||
// CHECK:STDOUT: call void @"_CSubobjectDestroy.174120d4d03791b0:core.Destroy.Core"(ptr %self), !dbg !38
|
||||
// CHECK:STDOUT: ret void, !dbg !38
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define void @_CPassIntPtrToConstVoidPtr.Main(ptr %a) #0 !dbg !38 {
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSubobjectDestroy.14b4a412ddf73a96:core.Destroy.Core"(ptr %self) #0 !dbg !40 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: %.loc15_27.2.temp = alloca ptr, align 8, !dbg !41
|
||||
// CHECK:STDOUT: %U.as_type.as.ImplicitAs.impl.Convert.call = call ptr @"_CConvert.538322f9fda4254f:ImplicitAs.a276ba298c70ba87.Core.aed6f04ab83d7fc5"(ptr %a), !dbg !41
|
||||
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %.loc15_27.2.temp), !dbg !41
|
||||
// CHECK:STDOUT: store ptr %U.as_type.as.ImplicitAs.impl.Convert.call, ptr %.loc15_27.2.temp, align 8, !dbg !41
|
||||
// CHECK:STDOUT: %.loc15_27.4 = load ptr, ptr %.loc15_27.2.temp, align 8, !dbg !41
|
||||
// CHECK:STDOUT: call void @_Z19take_const_void_ptrPKv(ptr %.loc15_27.4), !dbg !42
|
||||
// CHECK:STDOUT: call void @"_COp.dfb26e502f641cc5:core.Destroy.Core"(ptr %.loc15_27.2.temp), !dbg !41
|
||||
// CHECK:STDOUT: ret void, !dbg !43
|
||||
// CHECK:STDOUT: ret void, !dbg !42
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.14b4a412ddf73a96:core.Destroy.Core"(ptr %self) #0 !dbg !44 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: call void @"_CSubobjectDestroy.14b4a412ddf73a96:core.Destroy.Core"(ptr %self), !dbg !46
|
||||
// CHECK:STDOUT: ret void, !dbg !46
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define void @_CPassIntPtr.Main(ptr %a) #0 !dbg !48 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: %.loc11_21.2.temp = alloca ptr, align 8, !dbg !51
|
||||
// CHECK:STDOUT: %U.as_type.as.ImplicitAs.impl.Convert.call = call ptr @"_CConvert.538322f9fda4254f:ImplicitAs.a276ba298c70ba87.Core.6031252d10ea5365"(ptr %a), !dbg !51
|
||||
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %.loc11_21.2.temp), !dbg !51
|
||||
// CHECK:STDOUT: store ptr %U.as_type.as.ImplicitAs.impl.Convert.call, ptr %.loc11_21.2.temp, align 8, !dbg !51
|
||||
// CHECK:STDOUT: %.loc11_21.4 = load ptr, ptr %.loc11_21.2.temp, align 8, !dbg !51
|
||||
// CHECK:STDOUT: call void @_Z13take_void_ptrPv(ptr %.loc11_21.4), !dbg !52
|
||||
// CHECK:STDOUT: call void @"_CSelfDestruct.14b4a412ddf73a96:core.Destroy.Core"(ptr %.loc11_21.2.temp), !dbg !51
|
||||
// CHECK:STDOUT: ret void, !dbg !53
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.d088c7eb746488be:core.Destroy.Core"(ptr %self) #0 !dbg !55 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: ret void, !dbg !57
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define void @_CPassIntPtrToConstVoidPtr.Main(ptr %a) #0 !dbg !59 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: %.loc15_27.2.temp = alloca ptr, align 8, !dbg !62
|
||||
// CHECK:STDOUT: %U.as_type.as.ImplicitAs.impl.Convert.call = call ptr @"_CConvert.538322f9fda4254f:ImplicitAs.a276ba298c70ba87.Core.d72303bab6c7803c"(ptr %a), !dbg !62
|
||||
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %.loc15_27.2.temp), !dbg !62
|
||||
// CHECK:STDOUT: store ptr %U.as_type.as.ImplicitAs.impl.Convert.call, ptr %.loc15_27.2.temp, align 8, !dbg !62
|
||||
// CHECK:STDOUT: %.loc15_27.4 = load ptr, ptr %.loc15_27.2.temp, align 8, !dbg !62
|
||||
// CHECK:STDOUT: call void @_Z19take_const_void_ptrPKv(ptr %.loc15_27.4), !dbg !63
|
||||
// CHECK:STDOUT: call void @"_CSelfDestruct.dfb26e502f641cc5:core.Destroy.Core"(ptr %.loc15_27.2.temp), !dbg !62
|
||||
// CHECK:STDOUT: ret void, !dbg !64
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.e9afb99fe676df82:core.Destroy.Core"(ptr %self) #0 !dbg !66 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: ret void, !dbg !68
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: declare void @_Z19take_const_void_ptrPKv(ptr noundef) #1
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define weak_odr void @"_COp.8d3ff16138365f48:core.Destroy.Core"(ptr %self) #0 !dbg !45 {
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSubobjectDestroy.8d3ff16138365f48:core.Destroy.Core"(ptr %self) #0 !dbg !70 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: ret void, !dbg !47
|
||||
// CHECK:STDOUT: ret void, !dbg !72
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define weak_odr void @"_COp.d7d7d0af84cf13b8:core.Destroy.Core"(ptr %self) #0 !dbg !49 {
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.8d3ff16138365f48:core.Destroy.Core"(ptr %self) #0 !dbg !74 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: ret void, !dbg !51
|
||||
// CHECK:STDOUT: call void @"_CSubobjectDestroy.8d3ff16138365f48:core.Destroy.Core"(ptr %self), !dbg !76
|
||||
// CHECK:STDOUT: ret void, !dbg !76
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define weak_odr void @"_COp.dfb26e502f641cc5:core.Destroy.Core"(ptr %self) #0 !dbg !53 {
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSubobjectDestroy.4e1f0f3b7725eea2:core.Destroy.Core"(ptr %self) #0 !dbg !78 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: ret void, !dbg !55
|
||||
// CHECK:STDOUT: ret void, !dbg !80
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define void @_CPassConstIntPtrToConstVoidPtr.Main(ptr %a) #0 !dbg !57 {
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.4e1f0f3b7725eea2:core.Destroy.Core"(ptr %self) #0 !dbg !82 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: %.loc19_27.2.temp = alloca ptr, align 8, !dbg !60
|
||||
// CHECK:STDOUT: %U.as_type.as.ImplicitAs.impl.Convert.call = call ptr @"_CConvert.538322f9fda4254f:ImplicitAs.a276ba298c70ba87.Core.aed6f04ab83d7fc5"(ptr %a), !dbg !60
|
||||
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %.loc19_27.2.temp), !dbg !60
|
||||
// CHECK:STDOUT: store ptr %U.as_type.as.ImplicitAs.impl.Convert.call, ptr %.loc19_27.2.temp, align 8, !dbg !60
|
||||
// CHECK:STDOUT: %.loc19_27.4 = load ptr, ptr %.loc19_27.2.temp, align 8, !dbg !60
|
||||
// CHECK:STDOUT: call void @_Z19take_const_void_ptrPKv(ptr %.loc19_27.4), !dbg !61
|
||||
// CHECK:STDOUT: call void @"_COp.dfb26e502f641cc5:core.Destroy.Core"(ptr %.loc19_27.2.temp), !dbg !60
|
||||
// CHECK:STDOUT: ret void, !dbg !62
|
||||
// CHECK:STDOUT: call void @"_CSubobjectDestroy.4e1f0f3b7725eea2:core.Destroy.Core"(ptr %self), !dbg !84
|
||||
// CHECK:STDOUT: ret void, !dbg !84
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define linkonce_odr ptr @"_CConvert.538322f9fda4254f:ImplicitAs.a276ba298c70ba87.Core.0532bac23645330a"(ptr %self) #0 !dbg !65 {
|
||||
// CHECK:STDOUT: %1 = call ptr @"_CConvert.9fdaf39d07a1dc4e:OptionalAs.24b7347a93330e68.Core.4201ec9a263c5642"(ptr %self), !dbg !70
|
||||
// CHECK:STDOUT: ret ptr %1, !dbg !71
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSubobjectDestroy.dfb26e502f641cc5:core.Destroy.Core"(ptr %self) #0 !dbg !86 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: ret void, !dbg !88
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.dfb26e502f641cc5:core.Destroy.Core"(ptr %self) #0 !dbg !90 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: call void @"_CSubobjectDestroy.dfb26e502f641cc5:core.Destroy.Core"(ptr %self), !dbg !92
|
||||
// CHECK:STDOUT: ret void, !dbg !92
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define void @_CPassConstIntPtrToConstVoidPtr.Main(ptr %a) #0 !dbg !94 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: %.loc19_27.2.temp = alloca ptr, align 8, !dbg !97
|
||||
// CHECK:STDOUT: %U.as_type.as.ImplicitAs.impl.Convert.call = call ptr @"_CConvert.538322f9fda4254f:ImplicitAs.a276ba298c70ba87.Core.d72303bab6c7803c"(ptr %a), !dbg !97
|
||||
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %.loc19_27.2.temp), !dbg !97
|
||||
// CHECK:STDOUT: store ptr %U.as_type.as.ImplicitAs.impl.Convert.call, ptr %.loc19_27.2.temp, align 8, !dbg !97
|
||||
// CHECK:STDOUT: %.loc19_27.4 = load ptr, ptr %.loc19_27.2.temp, align 8, !dbg !97
|
||||
// CHECK:STDOUT: call void @_Z19take_const_void_ptrPKv(ptr %.loc19_27.4), !dbg !98
|
||||
// CHECK:STDOUT: call void @"_CSelfDestruct.dfb26e502f641cc5:core.Destroy.Core"(ptr %.loc19_27.2.temp), !dbg !97
|
||||
// CHECK:STDOUT: ret void, !dbg !99
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.7742c7b82efb7924:core.Destroy.Core"(ptr %self) #0 !dbg !101 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: ret void, !dbg !103
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define linkonce_odr ptr @"_CConvert.538322f9fda4254f:ImplicitAs.a276ba298c70ba87.Core.0532bac23645330a"(ptr %self) #0 !dbg !105 {
|
||||
// CHECK:STDOUT: %1 = call ptr @"_CConvert.9fdaf39d07a1dc4e:OptionalAs.24b7347a93330e68.Core.4201ec9a263c5642"(ptr %self), !dbg !110
|
||||
// CHECK:STDOUT: ret ptr %1, !dbg !111
|
||||
// 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)) #2
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define linkonce_odr ptr @"_CConvert.538322f9fda4254f:ImplicitAs.a276ba298c70ba87.Core.743bdca835b10868"(ptr %self) #0 !dbg !73 {
|
||||
// CHECK:STDOUT: %1 = call ptr @"_CConvert.d62727437df45535:OptionalAs.1dac4564233fecd1.Core.fbfbaeeadd5088b8"(ptr %self), !dbg !78
|
||||
// CHECK:STDOUT: ret ptr %1, !dbg !79
|
||||
// CHECK:STDOUT: define linkonce_odr ptr @"_CConvert.538322f9fda4254f:ImplicitAs.a276ba298c70ba87.Core.6031252d10ea5365"(ptr %self) #0 !dbg !113 {
|
||||
// CHECK:STDOUT: %1 = call ptr @"_CConvert.d62727437df45535:OptionalAs.1dac4564233fecd1.Core.1e16d6a5a3286ade"(ptr %self), !dbg !118
|
||||
// CHECK:STDOUT: ret ptr %1, !dbg !119
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define linkonce_odr ptr @"_CConvert.538322f9fda4254f:ImplicitAs.a276ba298c70ba87.Core.aed6f04ab83d7fc5"(ptr %self) #0 !dbg !81 {
|
||||
// CHECK:STDOUT: %1 = call ptr @"_CConvert.d62727437df45535:OptionalAs.1dac4564233fecd1.Core.0d728554b50ee51c"(ptr %self), !dbg !86
|
||||
// CHECK:STDOUT: ret ptr %1, !dbg !87
|
||||
// CHECK:STDOUT: define linkonce_odr ptr @"_CConvert.538322f9fda4254f:ImplicitAs.a276ba298c70ba87.Core.d72303bab6c7803c"(ptr %self) #0 !dbg !121 {
|
||||
// CHECK:STDOUT: %1 = call ptr @"_CConvert.d62727437df45535:OptionalAs.1dac4564233fecd1.Core.ea6f599e1a77a7ea"(ptr %self), !dbg !126
|
||||
// CHECK:STDOUT: ret ptr %1, !dbg !127
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define linkonce_odr ptr @"_CConvert.9fdaf39d07a1dc4e:OptionalAs.24b7347a93330e68.Core.4201ec9a263c5642"(ptr %self) #0 !dbg !97 {
|
||||
// CHECK:STDOUT: %1 = call ptr @_CSome.Optional.Core.4201ec9a263c5642(ptr %self), !dbg !103
|
||||
// CHECK:STDOUT: ret ptr %1, !dbg !104
|
||||
// CHECK:STDOUT: define linkonce_odr ptr @"_CConvert.9fdaf39d07a1dc4e:OptionalAs.24b7347a93330e68.Core.4201ec9a263c5642"(ptr %self) #0 !dbg !137 {
|
||||
// CHECK:STDOUT: %1 = call ptr @_CSome.Optional.Core.4201ec9a263c5642(ptr %self), !dbg !143
|
||||
// CHECK:STDOUT: ret ptr %1, !dbg !144
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define linkonce_odr ptr @"_CConvert.d62727437df45535:OptionalAs.1dac4564233fecd1.Core.fbfbaeeadd5088b8"(ptr %self) #0 !dbg !106 {
|
||||
// CHECK:STDOUT: %temp = alloca ptr, align 8, !dbg !111
|
||||
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %temp), !dbg !111
|
||||
// CHECK:STDOUT: store ptr %self, ptr %temp, align 8, !dbg !111
|
||||
// CHECK:STDOUT: %1 = load ptr, ptr %temp, align 8, !dbg !111
|
||||
// CHECK:STDOUT: %2 = call ptr @_CSome.Optional.Core.4201ec9a263c5642(ptr %1), !dbg !112
|
||||
// CHECK:STDOUT: ret ptr %2, !dbg !113
|
||||
// CHECK:STDOUT: define linkonce_odr ptr @"_CConvert.d62727437df45535:OptionalAs.1dac4564233fecd1.Core.1e16d6a5a3286ade"(ptr %self) #0 !dbg !146 {
|
||||
// CHECK:STDOUT: %temp = alloca ptr, align 8, !dbg !151
|
||||
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %temp), !dbg !151
|
||||
// CHECK:STDOUT: store ptr %self, ptr %temp, align 8, !dbg !151
|
||||
// CHECK:STDOUT: %1 = load ptr, ptr %temp, align 8, !dbg !151
|
||||
// CHECK:STDOUT: %2 = call ptr @_CSome.Optional.Core.4201ec9a263c5642(ptr %1), !dbg !152
|
||||
// CHECK:STDOUT: call void @"_CSelfDestruct.00ac8ef5084ea134:core.Destroy.Core"(ptr %temp), !dbg !151
|
||||
// CHECK:STDOUT: ret ptr %2, !dbg !153
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define linkonce_odr ptr @"_CConvert.d62727437df45535:OptionalAs.1dac4564233fecd1.Core.0d728554b50ee51c"(ptr %self) #0 !dbg !115 {
|
||||
// CHECK:STDOUT: %temp = alloca ptr, align 8, !dbg !120
|
||||
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %temp), !dbg !120
|
||||
// CHECK:STDOUT: %1 = call ptr @"_CConvert:thunk:ImplicitAs.a569d188b7ffe592.Core:e8f8f92d3d08d149:ImplicitAs.01c4a560c986e7d1.Core.84588f41d61dafba"(ptr %self), !dbg !120
|
||||
// CHECK:STDOUT: store ptr %1, ptr %temp, align 8, !dbg !120
|
||||
// CHECK:STDOUT: %2 = load ptr, ptr %temp, align 8, !dbg !120
|
||||
// CHECK:STDOUT: %3 = call ptr @_CSome.Optional.Core.e4523e01ac2590ba(ptr %2), !dbg !121
|
||||
// CHECK:STDOUT: ret ptr %3, !dbg !122
|
||||
// CHECK:STDOUT: define linkonce_odr ptr @"_CConvert.d62727437df45535:OptionalAs.1dac4564233fecd1.Core.ea6f599e1a77a7ea"(ptr %self) #0 !dbg !155 {
|
||||
// CHECK:STDOUT: %temp = alloca ptr, align 8, !dbg !160
|
||||
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %temp), !dbg !160
|
||||
// CHECK:STDOUT: %1 = call ptr @"_CConvert:thunk:ImplicitAs.a569d188b7ffe592.Core:e8f8f92d3d08d149:ImplicitAs.01c4a560c986e7d1.Core.84588f41d61dafba"(ptr %self), !dbg !160
|
||||
// CHECK:STDOUT: store ptr %1, ptr %temp, align 8, !dbg !160
|
||||
// CHECK:STDOUT: %2 = load ptr, ptr %temp, align 8, !dbg !160
|
||||
// CHECK:STDOUT: %3 = call ptr @_CSome.Optional.Core.e4523e01ac2590ba(ptr %2), !dbg !161
|
||||
// CHECK:STDOUT: call void @"_CSelfDestruct.e9afb99fe676df82:core.Destroy.Core"(ptr %temp), !dbg !160
|
||||
// CHECK:STDOUT: ret ptr %3, !dbg !162
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define linkonce_odr ptr @_CSome.Optional.Core.4201ec9a263c5642(ptr %value) #0 !dbg !133 {
|
||||
// CHECK:STDOUT: %1 = call ptr @"_CSome.e8f8f92d3d08d149:OptionalStorage.Core.7a595a06c724a271"(ptr %value), !dbg !138
|
||||
// CHECK:STDOUT: ret ptr %1, !dbg !139
|
||||
// CHECK:STDOUT: define linkonce_odr ptr @_CSome.Optional.Core.4201ec9a263c5642(ptr %value) #0 !dbg !173 {
|
||||
// CHECK:STDOUT: %1 = call ptr @"_CSome.e8f8f92d3d08d149:OptionalStorage.Core.7a595a06c724a271"(ptr %value), !dbg !178
|
||||
// CHECK:STDOUT: ret ptr %1, !dbg !179
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: alwaysinline nounwind
|
||||
// CHECK:STDOUT: define linkonce_odr ptr @"_CConvert:thunk:ImplicitAs.a569d188b7ffe592.Core:e8f8f92d3d08d149:ImplicitAs.01c4a560c986e7d1.Core.84588f41d61dafba"(ptr %self) #3 !dbg !142 {
|
||||
// CHECK:STDOUT: ret ptr %self, !dbg !145
|
||||
// CHECK:STDOUT: define linkonce_odr ptr @"_CConvert:thunk:ImplicitAs.a569d188b7ffe592.Core:e8f8f92d3d08d149:ImplicitAs.01c4a560c986e7d1.Core.84588f41d61dafba"(ptr %self) #3 !dbg !182 {
|
||||
// CHECK:STDOUT: ret ptr %self, !dbg !185
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define linkonce_odr ptr @_CSome.Optional.Core.e4523e01ac2590ba(ptr %value) #0 !dbg !147 {
|
||||
// CHECK:STDOUT: %1 = call ptr @"_CSome.e8f8f92d3d08d149:OptionalStorage.Core.8f1054b47505c137"(ptr %value), !dbg !152
|
||||
// CHECK:STDOUT: ret ptr %1, !dbg !153
|
||||
// CHECK:STDOUT: define linkonce_odr ptr @_CSome.Optional.Core.e4523e01ac2590ba(ptr %value) #0 !dbg !187 {
|
||||
// CHECK:STDOUT: %1 = call ptr @"_CSome.e8f8f92d3d08d149:OptionalStorage.Core.8f1054b47505c137"(ptr %value), !dbg !192
|
||||
// CHECK:STDOUT: ret ptr %1, !dbg !193
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define linkonce_odr ptr @"_CSome.e8f8f92d3d08d149:OptionalStorage.Core.7a595a06c724a271"(ptr %self) #0 !dbg !160 {
|
||||
// CHECK:STDOUT: %1 = alloca ptr, align 8, !dbg !165
|
||||
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %1), !dbg !165
|
||||
// CHECK:STDOUT: store ptr poison, ptr %1, align 8, !dbg !165
|
||||
// CHECK:STDOUT: store ptr %self, ptr %1, align 8, !dbg !169
|
||||
// CHECK:STDOUT: %2 = load ptr, ptr %1, align 8, !dbg !167
|
||||
// CHECK:STDOUT: call void @"_COp.ddbd3dbdb388ab25:core.Destroy.Core"(ptr %1), !dbg !165
|
||||
// CHECK:STDOUT: ret ptr %2, !dbg !171
|
||||
// CHECK:STDOUT: define linkonce_odr ptr @"_CSome.e8f8f92d3d08d149:OptionalStorage.Core.7a595a06c724a271"(ptr %self) #0 !dbg !200 {
|
||||
// CHECK:STDOUT: %1 = alloca ptr, align 8, !dbg !205
|
||||
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %1), !dbg !205
|
||||
// CHECK:STDOUT: store ptr poison, ptr %1, align 8, !dbg !205
|
||||
// CHECK:STDOUT: store ptr %self, ptr %1, align 8, !dbg !209
|
||||
// CHECK:STDOUT: %2 = load ptr, ptr %1, align 8, !dbg !207
|
||||
// CHECK:STDOUT: call void @"_CSelfDestruct.174120d4d03791b0:core.Destroy.Core"(ptr %1), !dbg !205
|
||||
// CHECK:STDOUT: ret ptr %2, !dbg !211
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define linkonce_odr ptr @"_CSome.e8f8f92d3d08d149:OptionalStorage.Core.8f1054b47505c137"(ptr %self) #0 !dbg !173 {
|
||||
// CHECK:STDOUT: %1 = alloca ptr, align 8, !dbg !178
|
||||
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %1), !dbg !178
|
||||
// CHECK:STDOUT: store ptr poison, ptr %1, align 8, !dbg !178
|
||||
// CHECK:STDOUT: store ptr %self, ptr %1, align 8, !dbg !182
|
||||
// CHECK:STDOUT: %2 = load ptr, ptr %1, align 8, !dbg !180
|
||||
// CHECK:STDOUT: call void @"_COp.d7d7d0af84cf13b8:core.Destroy.Core"(ptr %1), !dbg !178
|
||||
// CHECK:STDOUT: ret ptr %2, !dbg !184
|
||||
// CHECK:STDOUT: define linkonce_odr ptr @"_CSome.e8f8f92d3d08d149:OptionalStorage.Core.8f1054b47505c137"(ptr %self) #0 !dbg !213 {
|
||||
// CHECK:STDOUT: %1 = alloca ptr, align 8, !dbg !218
|
||||
// CHECK:STDOUT: call void @llvm.lifetime.start.p0(ptr %1), !dbg !218
|
||||
// CHECK:STDOUT: store ptr poison, ptr %1, align 8, !dbg !218
|
||||
// CHECK:STDOUT: store ptr %self, ptr %1, align 8, !dbg !222
|
||||
// CHECK:STDOUT: %2 = load ptr, ptr %1, align 8, !dbg !220
|
||||
// CHECK:STDOUT: call void @"_CSelfDestruct.4e1f0f3b7725eea2:core.Destroy.Core"(ptr %1), !dbg !218
|
||||
// CHECK:STDOUT: ret ptr %2, !dbg !224
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; uselistorder directives
|
||||
// CHECK:STDOUT: uselistorder ptr @llvm.lifetime.start.p0, { 0, 1, 2, 3, 7, 6, 5, 4 }
|
||||
// CHECK:STDOUT: uselistorder ptr @"_CConvert.538322f9fda4254f:ImplicitAs.a276ba298c70ba87.Core.aed6f04ab83d7fc5", { 1, 0 }
|
||||
// CHECK:STDOUT: uselistorder ptr @"_CConvert.538322f9fda4254f:ImplicitAs.a276ba298c70ba87.Core.d72303bab6c7803c", { 1, 0 }
|
||||
// CHECK:STDOUT: uselistorder ptr @_CSome.Optional.Core.4201ec9a263c5642, { 1, 0 }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: attributes #0 = { nounwind }
|
||||
@@ -252,8 +320,8 @@ fn ConvertFromConstVoidPtr(p: const Cpp.void*) -> const i32* {
|
||||
// CHECK:STDOUT: attributes #3 = { alwaysinline nounwind }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: !llvm.dbg.cu = !{!5}
|
||||
// CHECK:STDOUT: !llvm.module.flags = !{!186, !187, !188, !2, !3}
|
||||
// CHECK:STDOUT: !llvm.errno.tbaa = !{!193}
|
||||
// CHECK:STDOUT: !llvm.module.flags = !{!226, !227, !228, !2, !3}
|
||||
// CHECK:STDOUT: !llvm.errno.tbaa = !{!233}
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: !2 = !{i32 7, !"Dwarf Version", i32 5}
|
||||
// CHECK:STDOUT: !3 = !{i32 2, !"Debug Info Version", i32 3}
|
||||
@@ -270,118 +338,158 @@ fn ConvertFromConstVoidPtr(p: const Cpp.void*) -> const i32* {
|
||||
// CHECK:STDOUT: !16 = !DILocation(line: 7, column: 3, scope: !10)
|
||||
// CHECK:STDOUT: !17 = !DILocation(line: 6, column: 1, scope: !10)
|
||||
// CHECK:STDOUT: !18 = !{!11}
|
||||
// CHECK:STDOUT: !19 = distinct !DISubprogram(name: "Op", linkageName: "_COp.a7d1b77eb1279818:core.Destroy.Core", scope: null, file: !4, line: 7, type: !9, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !22)
|
||||
// CHECK:STDOUT: !20 = !DILocalVariable(arg: 1, scope: !19, type: !7)
|
||||
// CHECK:STDOUT: !21 = !DILocation(line: 7, column: 21, scope: !19)
|
||||
// CHECK:STDOUT: !22 = !{!20}
|
||||
// CHECK:STDOUT: !23 = distinct !DISubprogram(name: "Op", linkageName: "_COp.ddbd3dbdb388ab25:core.Destroy.Core", scope: null, file: !4, line: 7, type: !9, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !26)
|
||||
// CHECK:STDOUT: !24 = !DILocalVariable(arg: 1, scope: !23, type: !7)
|
||||
// CHECK:STDOUT: !25 = !DILocation(line: 7, column: 21, scope: !23)
|
||||
// CHECK:STDOUT: !26 = !{!24}
|
||||
// CHECK:STDOUT: !27 = distinct !DISubprogram(name: "Op", linkageName: "_COp.14b4a412ddf73a96:core.Destroy.Core", scope: null, file: !4, line: 7, type: !9, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !30)
|
||||
// CHECK:STDOUT: !28 = !DILocalVariable(arg: 1, scope: !27, type: !7)
|
||||
// CHECK:STDOUT: !29 = !DILocation(line: 7, column: 21, scope: !27)
|
||||
// CHECK:STDOUT: !30 = !{!28}
|
||||
// CHECK:STDOUT: !31 = distinct !DISubprogram(name: "PassIntPtr", linkageName: "_CPassIntPtr.Main", scope: null, file: !4, line: 10, type: !9, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !37)
|
||||
// CHECK:STDOUT: !32 = !DILocalVariable(arg: 1, scope: !31, type: !7)
|
||||
// CHECK:STDOUT: !34 = !DILocation(line: 11, column: 21, scope: !31)
|
||||
// CHECK:STDOUT: !35 = !DILocation(line: 11, column: 3, scope: !31)
|
||||
// CHECK:STDOUT: !36 = !DILocation(line: 10, column: 1, scope: !31)
|
||||
// CHECK:STDOUT: !37 = !{!32}
|
||||
// CHECK:STDOUT: !38 = distinct !DISubprogram(name: "PassIntPtrToConstVoidPtr", linkageName: "_CPassIntPtrToConstVoidPtr.Main", scope: null, file: !4, line: 14, type: !9, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !44)
|
||||
// CHECK:STDOUT: !39 = !DILocalVariable(arg: 1, scope: !38, type: !7)
|
||||
// CHECK:STDOUT: !41 = !DILocation(line: 15, column: 27, scope: !38)
|
||||
// CHECK:STDOUT: !42 = !DILocation(line: 15, column: 3, scope: !38)
|
||||
// CHECK:STDOUT: !43 = !DILocation(line: 14, column: 1, scope: !38)
|
||||
// CHECK:STDOUT: !44 = !{!39}
|
||||
// CHECK:STDOUT: !45 = distinct !DISubprogram(name: "Op", linkageName: "_COp.8d3ff16138365f48:core.Destroy.Core", scope: null, file: !4, line: 15, type: !9, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !48)
|
||||
// CHECK:STDOUT: !46 = !DILocalVariable(arg: 1, scope: !45, type: !7)
|
||||
// CHECK:STDOUT: !47 = !DILocation(line: 15, column: 27, scope: !45)
|
||||
// CHECK:STDOUT: !48 = !{!46}
|
||||
// CHECK:STDOUT: !49 = distinct !DISubprogram(name: "Op", linkageName: "_COp.d7d7d0af84cf13b8:core.Destroy.Core", scope: null, file: !4, line: 15, type: !9, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !52)
|
||||
// CHECK:STDOUT: !50 = !DILocalVariable(arg: 1, scope: !49, type: !7)
|
||||
// CHECK:STDOUT: !51 = !DILocation(line: 15, column: 27, scope: !49)
|
||||
// CHECK:STDOUT: !52 = !{!50}
|
||||
// CHECK:STDOUT: !53 = distinct !DISubprogram(name: "Op", linkageName: "_COp.dfb26e502f641cc5:core.Destroy.Core", scope: null, file: !4, line: 15, type: !9, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !56)
|
||||
// CHECK:STDOUT: !54 = !DILocalVariable(arg: 1, scope: !53, type: !7)
|
||||
// CHECK:STDOUT: !55 = !DILocation(line: 15, column: 27, scope: !53)
|
||||
// CHECK:STDOUT: !56 = !{!54}
|
||||
// CHECK:STDOUT: !57 = distinct !DISubprogram(name: "PassConstIntPtrToConstVoidPtr", linkageName: "_CPassConstIntPtrToConstVoidPtr.Main", scope: null, file: !4, line: 18, type: !9, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !63)
|
||||
// CHECK:STDOUT: !58 = !DILocalVariable(arg: 1, scope: !57, type: !7)
|
||||
// CHECK:STDOUT: !60 = !DILocation(line: 19, column: 27, scope: !57)
|
||||
// CHECK:STDOUT: !61 = !DILocation(line: 19, column: 3, scope: !57)
|
||||
// CHECK:STDOUT: !62 = !DILocation(line: 18, column: 1, scope: !57)
|
||||
// CHECK:STDOUT: !63 = !{!58}
|
||||
// CHECK:STDOUT: !64 = !DIFile(filename: "{{.*}}/prelude/types/optional.carbon", directory: "")
|
||||
// CHECK:STDOUT: !65 = distinct !DISubprogram(name: "Convert", linkageName: "_CConvert.538322f9fda4254f:ImplicitAs.a276ba298c70ba87.Core.0532bac23645330a", scope: null, file: !64, line: 105, type: !15, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !72)
|
||||
// CHECK:STDOUT: !66 = !DILocalVariable(arg: 1, scope: !65, type: !7)
|
||||
// CHECK:STDOUT: !70 = !DILocation(line: 106, column: 12, scope: !65)
|
||||
// CHECK:STDOUT: !71 = !DILocation(line: 106, column: 5, scope: !65)
|
||||
// CHECK:STDOUT: !72 = !{!66}
|
||||
// CHECK:STDOUT: !73 = distinct !DISubprogram(name: "Convert", linkageName: "_CConvert.538322f9fda4254f:ImplicitAs.a276ba298c70ba87.Core.743bdca835b10868", scope: null, file: !64, line: 105, type: !15, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !80)
|
||||
// CHECK:STDOUT: !74 = !DILocalVariable(arg: 1, scope: !73, type: !7)
|
||||
// CHECK:STDOUT: !78 = !DILocation(line: 106, column: 12, scope: !73)
|
||||
// CHECK:STDOUT: !79 = !DILocation(line: 106, column: 5, scope: !73)
|
||||
// CHECK:STDOUT: !80 = !{!74}
|
||||
// CHECK:STDOUT: !81 = distinct !DISubprogram(name: "Convert", linkageName: "_CConvert.538322f9fda4254f:ImplicitAs.a276ba298c70ba87.Core.aed6f04ab83d7fc5", scope: null, file: !64, line: 105, type: !15, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !88)
|
||||
// CHECK:STDOUT: !82 = !DILocalVariable(arg: 1, scope: !81, type: !7)
|
||||
// CHECK:STDOUT: !86 = !DILocation(line: 106, column: 12, scope: !81)
|
||||
// CHECK:STDOUT: !87 = !DILocation(line: 106, column: 5, scope: !81)
|
||||
// CHECK:STDOUT: !88 = !{!82}
|
||||
// CHECK:STDOUT: !97 = distinct !DISubprogram(name: "Convert", linkageName: "_CConvert.9fdaf39d07a1dc4e:OptionalAs.24b7347a93330e68.Core.4201ec9a263c5642", scope: null, file: !64, line: 80, type: !15, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !105)
|
||||
// CHECK:STDOUT: !98 = !DILocalVariable(arg: 1, scope: !97, type: !7)
|
||||
// CHECK:STDOUT: !103 = !DILocation(line: 81, column: 12, scope: !97)
|
||||
// CHECK:STDOUT: !104 = !DILocation(line: 81, column: 5, scope: !97)
|
||||
// CHECK:STDOUT: !105 = !{!98}
|
||||
// CHECK:STDOUT: !106 = distinct !DISubprogram(name: "Convert", linkageName: "_CConvert.d62727437df45535:OptionalAs.1dac4564233fecd1.Core.fbfbaeeadd5088b8", scope: null, file: !64, line: 87, type: !15, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !114)
|
||||
// CHECK:STDOUT: !107 = !DILocalVariable(arg: 1, scope: !106, type: !7)
|
||||
// CHECK:STDOUT: !111 = !DILocation(line: 88, column: 29, scope: !106)
|
||||
// CHECK:STDOUT: !112 = !DILocation(line: 88, column: 12, scope: !106)
|
||||
// CHECK:STDOUT: !113 = !DILocation(line: 88, column: 5, scope: !106)
|
||||
// CHECK:STDOUT: !114 = !{!107}
|
||||
// CHECK:STDOUT: !115 = distinct !DISubprogram(name: "Convert", linkageName: "_CConvert.d62727437df45535:OptionalAs.1dac4564233fecd1.Core.0d728554b50ee51c", scope: null, file: !64, line: 87, type: !15, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !123)
|
||||
// CHECK:STDOUT: !116 = !DILocalVariable(arg: 1, scope: !115, type: !7)
|
||||
// CHECK:STDOUT: !120 = !DILocation(line: 88, column: 29, scope: !115)
|
||||
// CHECK:STDOUT: !121 = !DILocation(line: 88, column: 12, scope: !115)
|
||||
// CHECK:STDOUT: !122 = !DILocation(line: 88, column: 5, scope: !115)
|
||||
// CHECK:STDOUT: !123 = !{!116}
|
||||
// CHECK:STDOUT: !133 = distinct !DISubprogram(name: "Some", linkageName: "_CSome.Optional.Core.4201ec9a263c5642", scope: null, file: !64, line: 33, type: !15, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !140)
|
||||
// CHECK:STDOUT: !134 = !DILocalVariable(arg: 1, scope: !133, type: !7)
|
||||
// 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 = !DIFile(filename: "{{.*}}/prelude/types/cpp/void.carbon", directory: "")
|
||||
// CHECK:STDOUT: !142 = distinct !DISubprogram(name: "Convert", linkageName: "_CConvert:thunk:ImplicitAs.a569d188b7ffe592.Core:e8f8f92d3d08d149:ImplicitAs.01c4a560c986e7d1.Core.84588f41d61dafba", scope: null, file: !141, line: 40, type: !15, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !146)
|
||||
// CHECK:STDOUT: !143 = !DILocalVariable(arg: 1, scope: !142, type: !7)
|
||||
// CHECK:STDOUT: !145 = !DILocation(line: 40, column: 3, scope: !142)
|
||||
// CHECK:STDOUT: !146 = !{!143}
|
||||
// CHECK:STDOUT: !147 = distinct !DISubprogram(name: "Some", linkageName: "_CSome.Optional.Core.e4523e01ac2590ba", scope: null, file: !64, line: 33, type: !15, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !154)
|
||||
// CHECK:STDOUT: !148 = !DILocalVariable(arg: 1, scope: !147, type: !7)
|
||||
// CHECK:STDOUT: !152 = !DILocation(line: 34, column: 12, scope: !147)
|
||||
// CHECK:STDOUT: !153 = !DILocation(line: 34, column: 5, scope: !147)
|
||||
// CHECK:STDOUT: !154 = !{!148}
|
||||
// CHECK:STDOUT: !160 = distinct !DISubprogram(name: "Some", linkageName: "_CSome.e8f8f92d3d08d149:OptionalStorage.Core.7a595a06c724a271", scope: null, file: !64, line: 166, type: !15, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !172)
|
||||
// CHECK:STDOUT: !161 = !DILocalVariable(arg: 1, scope: !160, type: !7)
|
||||
// CHECK:STDOUT: !165 = !DILocation(line: 167, column: 14, scope: !160)
|
||||
// CHECK:STDOUT: !167 = !DILocation(line: 167, column: 18, scope: !160)
|
||||
// CHECK:STDOUT: !169 = !DILocation(line: 169, column: 5, scope: !160)
|
||||
// CHECK:STDOUT: !171 = !DILocation(line: 170, column: 5, scope: !160)
|
||||
// CHECK:STDOUT: !172 = !{!161}
|
||||
// CHECK:STDOUT: !173 = distinct !DISubprogram(name: "Some", linkageName: "_CSome.e8f8f92d3d08d149:OptionalStorage.Core.8f1054b47505c137", scope: null, file: !64, line: 166, type: !15, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !185)
|
||||
// CHECK:STDOUT: !19 = !DIFile(filename: "{{.*}}/prelude/types/optional.carbon", directory: "")
|
||||
// CHECK:STDOUT: !20 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.00ac8ef5084ea134:core.Destroy.Core", scope: null, file: !19, line: 164, type: !9, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !23)
|
||||
// CHECK:STDOUT: !21 = !DILocalVariable(arg: 1, scope: !20, type: !7)
|
||||
// CHECK:STDOUT: !22 = !DILocation(line: 164, column: 19, scope: !20)
|
||||
// CHECK:STDOUT: !23 = !{!21}
|
||||
// CHECK:STDOUT: !24 = distinct !DISubprogram(name: "SubobjectDestroy", linkageName: "_CSubobjectDestroy.a7d1b77eb1279818:core.Destroy.Core", scope: null, file: !4, line: 7, type: !9, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !27)
|
||||
// CHECK:STDOUT: !25 = !DILocalVariable(arg: 1, scope: !24, type: !7)
|
||||
// CHECK:STDOUT: !26 = !DILocation(line: 7, column: 21, scope: !24)
|
||||
// CHECK:STDOUT: !27 = !{!25}
|
||||
// CHECK:STDOUT: !28 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.a7d1b77eb1279818:core.Destroy.Core", scope: null, file: !4, line: 7, type: !9, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !31)
|
||||
// CHECK:STDOUT: !29 = !DILocalVariable(arg: 1, scope: !28, type: !7)
|
||||
// CHECK:STDOUT: !30 = !DILocation(line: 7, column: 21, scope: !28)
|
||||
// CHECK:STDOUT: !31 = !{!29}
|
||||
// CHECK:STDOUT: !32 = distinct !DISubprogram(name: "SubobjectDestroy", linkageName: "_CSubobjectDestroy.174120d4d03791b0:core.Destroy.Core", scope: null, file: !4, line: 7, type: !9, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !35)
|
||||
// CHECK:STDOUT: !33 = !DILocalVariable(arg: 1, scope: !32, type: !7)
|
||||
// CHECK:STDOUT: !34 = !DILocation(line: 7, column: 21, scope: !32)
|
||||
// CHECK:STDOUT: !35 = !{!33}
|
||||
// CHECK:STDOUT: !36 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.174120d4d03791b0:core.Destroy.Core", scope: null, file: !4, line: 7, type: !9, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !39)
|
||||
// CHECK:STDOUT: !37 = !DILocalVariable(arg: 1, scope: !36, type: !7)
|
||||
// CHECK:STDOUT: !38 = !DILocation(line: 7, column: 21, scope: !36)
|
||||
// CHECK:STDOUT: !39 = !{!37}
|
||||
// CHECK:STDOUT: !40 = distinct !DISubprogram(name: "SubobjectDestroy", linkageName: "_CSubobjectDestroy.14b4a412ddf73a96:core.Destroy.Core", scope: null, file: !4, line: 7, type: !9, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !43)
|
||||
// CHECK:STDOUT: !41 = !DILocalVariable(arg: 1, scope: !40, type: !7)
|
||||
// CHECK:STDOUT: !42 = !DILocation(line: 7, column: 21, scope: !40)
|
||||
// CHECK:STDOUT: !43 = !{!41}
|
||||
// CHECK:STDOUT: !44 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.14b4a412ddf73a96:core.Destroy.Core", scope: null, file: !4, line: 7, type: !9, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !47)
|
||||
// CHECK:STDOUT: !45 = !DILocalVariable(arg: 1, scope: !44, type: !7)
|
||||
// CHECK:STDOUT: !46 = !DILocation(line: 7, column: 21, scope: !44)
|
||||
// CHECK:STDOUT: !47 = !{!45}
|
||||
// CHECK:STDOUT: !48 = distinct !DISubprogram(name: "PassIntPtr", linkageName: "_CPassIntPtr.Main", scope: null, file: !4, line: 10, type: !9, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !54)
|
||||
// CHECK:STDOUT: !49 = !DILocalVariable(arg: 1, scope: !48, type: !7)
|
||||
// CHECK:STDOUT: !51 = !DILocation(line: 11, column: 21, scope: !48)
|
||||
// CHECK:STDOUT: !52 = !DILocation(line: 11, column: 3, scope: !48)
|
||||
// CHECK:STDOUT: !53 = !DILocation(line: 10, column: 1, scope: !48)
|
||||
// CHECK:STDOUT: !54 = !{!49}
|
||||
// CHECK:STDOUT: !55 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.d088c7eb746488be:core.Destroy.Core", scope: null, file: !19, line: 164, type: !9, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !58)
|
||||
// CHECK:STDOUT: !56 = !DILocalVariable(arg: 1, scope: !55, type: !7)
|
||||
// CHECK:STDOUT: !57 = !DILocation(line: 164, column: 19, scope: !55)
|
||||
// CHECK:STDOUT: !58 = !{!56}
|
||||
// CHECK:STDOUT: !59 = distinct !DISubprogram(name: "PassIntPtrToConstVoidPtr", linkageName: "_CPassIntPtrToConstVoidPtr.Main", scope: null, file: !4, line: 14, type: !9, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !65)
|
||||
// CHECK:STDOUT: !60 = !DILocalVariable(arg: 1, scope: !59, type: !7)
|
||||
// CHECK:STDOUT: !62 = !DILocation(line: 15, column: 27, scope: !59)
|
||||
// CHECK:STDOUT: !63 = !DILocation(line: 15, column: 3, scope: !59)
|
||||
// CHECK:STDOUT: !64 = !DILocation(line: 14, column: 1, scope: !59)
|
||||
// CHECK:STDOUT: !65 = !{!60}
|
||||
// CHECK:STDOUT: !66 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.e9afb99fe676df82:core.Destroy.Core", scope: null, file: !19, line: 164, type: !9, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !69)
|
||||
// CHECK:STDOUT: !67 = !DILocalVariable(arg: 1, scope: !66, type: !7)
|
||||
// CHECK:STDOUT: !68 = !DILocation(line: 164, column: 19, scope: !66)
|
||||
// CHECK:STDOUT: !69 = !{!67}
|
||||
// CHECK:STDOUT: !70 = distinct !DISubprogram(name: "SubobjectDestroy", linkageName: "_CSubobjectDestroy.8d3ff16138365f48:core.Destroy.Core", scope: null, file: !4, line: 15, type: !9, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !73)
|
||||
// CHECK:STDOUT: !71 = !DILocalVariable(arg: 1, scope: !70, type: !7)
|
||||
// CHECK:STDOUT: !72 = !DILocation(line: 15, column: 27, scope: !70)
|
||||
// CHECK:STDOUT: !73 = !{!71}
|
||||
// CHECK:STDOUT: !74 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.8d3ff16138365f48:core.Destroy.Core", scope: null, file: !4, line: 15, type: !9, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !77)
|
||||
// CHECK:STDOUT: !75 = !DILocalVariable(arg: 1, scope: !74, type: !7)
|
||||
// CHECK:STDOUT: !76 = !DILocation(line: 15, column: 27, scope: !74)
|
||||
// CHECK:STDOUT: !77 = !{!75}
|
||||
// CHECK:STDOUT: !78 = distinct !DISubprogram(name: "SubobjectDestroy", linkageName: "_CSubobjectDestroy.4e1f0f3b7725eea2:core.Destroy.Core", scope: null, file: !4, line: 15, type: !9, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !81)
|
||||
// CHECK:STDOUT: !79 = !DILocalVariable(arg: 1, scope: !78, type: !7)
|
||||
// CHECK:STDOUT: !80 = !DILocation(line: 15, column: 27, scope: !78)
|
||||
// CHECK:STDOUT: !81 = !{!79}
|
||||
// CHECK:STDOUT: !82 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.4e1f0f3b7725eea2:core.Destroy.Core", scope: null, file: !4, line: 15, type: !9, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !85)
|
||||
// CHECK:STDOUT: !83 = !DILocalVariable(arg: 1, scope: !82, type: !7)
|
||||
// CHECK:STDOUT: !84 = !DILocation(line: 15, column: 27, scope: !82)
|
||||
// CHECK:STDOUT: !85 = !{!83}
|
||||
// CHECK:STDOUT: !86 = distinct !DISubprogram(name: "SubobjectDestroy", linkageName: "_CSubobjectDestroy.dfb26e502f641cc5:core.Destroy.Core", scope: null, file: !4, line: 15, type: !9, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !89)
|
||||
// CHECK:STDOUT: !87 = !DILocalVariable(arg: 1, scope: !86, type: !7)
|
||||
// CHECK:STDOUT: !88 = !DILocation(line: 15, column: 27, scope: !86)
|
||||
// CHECK:STDOUT: !89 = !{!87}
|
||||
// CHECK:STDOUT: !90 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.dfb26e502f641cc5:core.Destroy.Core", scope: null, file: !4, line: 15, type: !9, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !93)
|
||||
// CHECK:STDOUT: !91 = !DILocalVariable(arg: 1, scope: !90, type: !7)
|
||||
// CHECK:STDOUT: !92 = !DILocation(line: 15, column: 27, scope: !90)
|
||||
// CHECK:STDOUT: !93 = !{!91}
|
||||
// CHECK:STDOUT: !94 = distinct !DISubprogram(name: "PassConstIntPtrToConstVoidPtr", linkageName: "_CPassConstIntPtrToConstVoidPtr.Main", scope: null, file: !4, line: 18, type: !9, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !100)
|
||||
// CHECK:STDOUT: !95 = !DILocalVariable(arg: 1, scope: !94, type: !7)
|
||||
// CHECK:STDOUT: !97 = !DILocation(line: 19, column: 27, scope: !94)
|
||||
// CHECK:STDOUT: !98 = !DILocation(line: 19, column: 3, scope: !94)
|
||||
// CHECK:STDOUT: !99 = !DILocation(line: 18, column: 1, scope: !94)
|
||||
// CHECK:STDOUT: !100 = !{!95}
|
||||
// CHECK:STDOUT: !101 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.7742c7b82efb7924:core.Destroy.Core", scope: null, file: !19, line: 164, type: !9, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !104)
|
||||
// CHECK:STDOUT: !102 = !DILocalVariable(arg: 1, scope: !101, type: !7)
|
||||
// CHECK:STDOUT: !103 = !DILocation(line: 164, column: 19, scope: !101)
|
||||
// CHECK:STDOUT: !104 = !{!102}
|
||||
// CHECK:STDOUT: !105 = distinct !DISubprogram(name: "Convert", linkageName: "_CConvert.538322f9fda4254f:ImplicitAs.a276ba298c70ba87.Core.0532bac23645330a", scope: null, file: !19, line: 105, type: !15, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !112)
|
||||
// CHECK:STDOUT: !106 = !DILocalVariable(arg: 1, scope: !105, type: !7)
|
||||
// CHECK:STDOUT: !110 = !DILocation(line: 106, column: 12, scope: !105)
|
||||
// CHECK:STDOUT: !111 = !DILocation(line: 106, column: 5, scope: !105)
|
||||
// CHECK:STDOUT: !112 = !{!106}
|
||||
// CHECK:STDOUT: !113 = distinct !DISubprogram(name: "Convert", linkageName: "_CConvert.538322f9fda4254f:ImplicitAs.a276ba298c70ba87.Core.6031252d10ea5365", scope: null, file: !19, line: 105, type: !15, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !120)
|
||||
// CHECK:STDOUT: !114 = !DILocalVariable(arg: 1, scope: !113, type: !7)
|
||||
// CHECK:STDOUT: !118 = !DILocation(line: 106, column: 12, scope: !113)
|
||||
// CHECK:STDOUT: !119 = !DILocation(line: 106, column: 5, scope: !113)
|
||||
// CHECK:STDOUT: !120 = !{!114}
|
||||
// CHECK:STDOUT: !121 = distinct !DISubprogram(name: "Convert", linkageName: "_CConvert.538322f9fda4254f:ImplicitAs.a276ba298c70ba87.Core.d72303bab6c7803c", scope: null, file: !19, line: 105, type: !15, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !128)
|
||||
// CHECK:STDOUT: !122 = !DILocalVariable(arg: 1, scope: !121, type: !7)
|
||||
// CHECK:STDOUT: !126 = !DILocation(line: 106, column: 12, scope: !121)
|
||||
// CHECK:STDOUT: !127 = !DILocation(line: 106, column: 5, scope: !121)
|
||||
// CHECK:STDOUT: !128 = !{!122}
|
||||
// CHECK:STDOUT: !137 = distinct !DISubprogram(name: "Convert", linkageName: "_CConvert.9fdaf39d07a1dc4e:OptionalAs.24b7347a93330e68.Core.4201ec9a263c5642", scope: null, file: !19, line: 80, type: !15, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !145)
|
||||
// CHECK:STDOUT: !138 = !DILocalVariable(arg: 1, scope: !137, type: !7)
|
||||
// CHECK:STDOUT: !143 = !DILocation(line: 81, column: 12, scope: !137)
|
||||
// CHECK:STDOUT: !144 = !DILocation(line: 81, column: 5, scope: !137)
|
||||
// CHECK:STDOUT: !145 = !{!138}
|
||||
// CHECK:STDOUT: !146 = distinct !DISubprogram(name: "Convert", linkageName: "_CConvert.d62727437df45535:OptionalAs.1dac4564233fecd1.Core.1e16d6a5a3286ade", scope: null, file: !19, line: 87, type: !15, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !154)
|
||||
// CHECK:STDOUT: !147 = !DILocalVariable(arg: 1, scope: !146, type: !7)
|
||||
// CHECK:STDOUT: !151 = !DILocation(line: 88, column: 29, scope: !146)
|
||||
// CHECK:STDOUT: !152 = !DILocation(line: 88, column: 12, scope: !146)
|
||||
// CHECK:STDOUT: !153 = !DILocation(line: 88, column: 5, scope: !146)
|
||||
// CHECK:STDOUT: !154 = !{!147}
|
||||
// CHECK:STDOUT: !155 = distinct !DISubprogram(name: "Convert", linkageName: "_CConvert.d62727437df45535:OptionalAs.1dac4564233fecd1.Core.ea6f599e1a77a7ea", scope: null, file: !19, line: 87, type: !15, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !163)
|
||||
// CHECK:STDOUT: !156 = !DILocalVariable(arg: 1, scope: !155, type: !7)
|
||||
// CHECK:STDOUT: !160 = !DILocation(line: 88, column: 29, scope: !155)
|
||||
// CHECK:STDOUT: !161 = !DILocation(line: 88, column: 12, scope: !155)
|
||||
// CHECK:STDOUT: !162 = !DILocation(line: 88, column: 5, scope: !155)
|
||||
// CHECK:STDOUT: !163 = !{!156}
|
||||
// CHECK:STDOUT: !173 = distinct !DISubprogram(name: "Some", linkageName: "_CSome.Optional.Core.4201ec9a263c5642", scope: null, file: !19, line: 33, type: !15, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !180)
|
||||
// CHECK:STDOUT: !174 = !DILocalVariable(arg: 1, scope: !173, type: !7)
|
||||
// CHECK:STDOUT: !178 = !DILocation(line: 167, column: 14, scope: !173)
|
||||
// CHECK:STDOUT: !180 = !DILocation(line: 167, column: 18, scope: !173)
|
||||
// CHECK:STDOUT: !182 = !DILocation(line: 169, column: 5, scope: !173)
|
||||
// CHECK:STDOUT: !184 = !DILocation(line: 170, column: 5, scope: !173)
|
||||
// CHECK:STDOUT: !185 = !{!174}
|
||||
// CHECK:STDOUT: !186 = !{i32 8, !"PIC Level", i32 2}
|
||||
// CHECK:STDOUT: !187 = !{i32 7, !"PIE Level", i32 2}
|
||||
// CHECK:STDOUT: !188 = !{i32 7, !"uwtable", i32 2}
|
||||
// CHECK:STDOUT: !189 = !{!"Simple C++ TBAA"}
|
||||
// CHECK:STDOUT: !190 = !{!"omnipotent char", !189, i64 0}
|
||||
// CHECK:STDOUT: !191 = !{!"int", !190, i64 0}
|
||||
// CHECK:STDOUT: !192 = !{!"__libc_errno", !191, i64 0}
|
||||
// CHECK:STDOUT: !193 = !{!192, !191, i64 0}
|
||||
// CHECK:STDOUT: !178 = !DILocation(line: 34, column: 12, scope: !173)
|
||||
// CHECK:STDOUT: !179 = !DILocation(line: 34, column: 5, scope: !173)
|
||||
// CHECK:STDOUT: !180 = !{!174}
|
||||
// CHECK:STDOUT: !181 = !DIFile(filename: "{{.*}}/prelude/types/cpp/void.carbon", directory: "")
|
||||
// CHECK:STDOUT: !182 = distinct !DISubprogram(name: "Convert", linkageName: "_CConvert:thunk:ImplicitAs.a569d188b7ffe592.Core:e8f8f92d3d08d149:ImplicitAs.01c4a560c986e7d1.Core.84588f41d61dafba", scope: null, file: !181, line: 40, type: !15, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !186)
|
||||
// CHECK:STDOUT: !183 = !DILocalVariable(arg: 1, scope: !182, type: !7)
|
||||
// CHECK:STDOUT: !185 = !DILocation(line: 40, column: 3, scope: !182)
|
||||
// CHECK:STDOUT: !186 = !{!183}
|
||||
// CHECK:STDOUT: !187 = distinct !DISubprogram(name: "Some", linkageName: "_CSome.Optional.Core.e4523e01ac2590ba", scope: null, file: !19, line: 33, type: !15, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !194)
|
||||
// CHECK:STDOUT: !188 = !DILocalVariable(arg: 1, scope: !187, type: !7)
|
||||
// CHECK:STDOUT: !192 = !DILocation(line: 34, column: 12, scope: !187)
|
||||
// CHECK:STDOUT: !193 = !DILocation(line: 34, column: 5, scope: !187)
|
||||
// CHECK:STDOUT: !194 = !{!188}
|
||||
// CHECK:STDOUT: !200 = distinct !DISubprogram(name: "Some", linkageName: "_CSome.e8f8f92d3d08d149:OptionalStorage.Core.7a595a06c724a271", scope: null, file: !19, line: 166, type: !15, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !212)
|
||||
// CHECK:STDOUT: !201 = !DILocalVariable(arg: 1, scope: !200, type: !7)
|
||||
// CHECK:STDOUT: !205 = !DILocation(line: 167, column: 14, scope: !200)
|
||||
// CHECK:STDOUT: !207 = !DILocation(line: 167, column: 18, scope: !200)
|
||||
// CHECK:STDOUT: !209 = !DILocation(line: 169, column: 5, scope: !200)
|
||||
// CHECK:STDOUT: !211 = !DILocation(line: 170, column: 5, scope: !200)
|
||||
// CHECK:STDOUT: !212 = !{!201}
|
||||
// CHECK:STDOUT: !213 = distinct !DISubprogram(name: "Some", linkageName: "_CSome.e8f8f92d3d08d149:OptionalStorage.Core.8f1054b47505c137", scope: null, file: !19, line: 166, type: !15, spFlags: DISPFlagDefinition, unit: !5, retainedNodes: !225)
|
||||
// CHECK:STDOUT: !214 = !DILocalVariable(arg: 1, scope: !213, type: !7)
|
||||
// CHECK:STDOUT: !218 = !DILocation(line: 167, column: 14, scope: !213)
|
||||
// CHECK:STDOUT: !220 = !DILocation(line: 167, column: 18, scope: !213)
|
||||
// CHECK:STDOUT: !222 = !DILocation(line: 169, column: 5, scope: !213)
|
||||
// CHECK:STDOUT: !224 = !DILocation(line: 170, column: 5, scope: !213)
|
||||
// CHECK:STDOUT: !225 = !{!214}
|
||||
// CHECK:STDOUT: !226 = !{i32 8, !"PIC Level", i32 2}
|
||||
// CHECK:STDOUT: !227 = !{i32 7, !"PIE Level", i32 2}
|
||||
// CHECK:STDOUT: !228 = !{i32 7, !"uwtable", i32 2}
|
||||
// CHECK:STDOUT: !229 = !{!"Simple C++ TBAA"}
|
||||
// CHECK:STDOUT: !230 = !{!"omnipotent char", !229, i64 0}
|
||||
// CHECK:STDOUT: !231 = !{!"int", !230, i64 0}
|
||||
// CHECK:STDOUT: !232 = !{!"__libc_errno", !231, i64 0}
|
||||
// CHECK:STDOUT: !233 = !{!232, !231, i64 0}
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; ---
|
||||
// CHECK:STDOUT: ; ModuleID = 'receive.carbon'
|
||||
@@ -390,59 +498,72 @@ fn ConvertFromConstVoidPtr(p: const Cpp.void*) -> const i32* {
|
||||
// CHECK:STDOUT: target triple = "x86_64-unknown-linux-gnu"
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define ptr @_CReceiveVoidPtr.Main() #0 !dbg !198 {
|
||||
// CHECK:STDOUT: define weak_odr void @"_CSelfDestruct.00ac8ef5084ea134:core.Destroy.Core"(ptr %self) #0 !dbg !238 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: %return_void_ptr.call = call ptr @_Z15return_void_ptrv(), !dbg !201
|
||||
// CHECK:STDOUT: ret ptr %return_void_ptr.call, !dbg !202
|
||||
// CHECK:STDOUT: ret void, !dbg !240
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define ptr @_CReceiveVoidPtr.Main() #0 !dbg !242 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: %return_void_ptr.call = call ptr @_Z15return_void_ptrv(), !dbg !245
|
||||
// CHECK:STDOUT: ret ptr %return_void_ptr.call, !dbg !246
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: declare noundef ptr @_Z15return_void_ptrv() #1
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define ptr @_CConvertFromVoidPtr.Main(ptr %p) #0 !dbg !203 {
|
||||
// CHECK:STDOUT: define ptr @_CConvertFromVoidPtr.Main(ptr %p) #0 !dbg !247 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: ret ptr %p, !dbg !209
|
||||
// CHECK:STDOUT: ret ptr %p, !dbg !253
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: ; Function Attrs: nounwind
|
||||
// CHECK:STDOUT: define ptr @_CConvertFromConstVoidPtr.Main(ptr %p) #0 !dbg !211 {
|
||||
// CHECK:STDOUT: define ptr @_CConvertFromConstVoidPtr.Main(ptr %p) #0 !dbg !255 {
|
||||
// CHECK:STDOUT: entry:
|
||||
// CHECK:STDOUT: ret ptr %p, !dbg !217
|
||||
// CHECK:STDOUT: ret ptr %p, !dbg !261
|
||||
// CHECK:STDOUT: }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: attributes #0 = { nounwind }
|
||||
// CHECK:STDOUT: attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: !llvm.dbg.cu = !{!195}
|
||||
// CHECK:STDOUT: !llvm.module.flags = !{!186, !187, !188, !2, !3}
|
||||
// CHECK:STDOUT: !llvm.errno.tbaa = !{!193}
|
||||
// CHECK:STDOUT: !llvm.dbg.cu = !{!235}
|
||||
// CHECK:STDOUT: !llvm.module.flags = !{!226, !227, !228, !2, !3}
|
||||
// CHECK:STDOUT: !llvm.errno.tbaa = !{!233}
|
||||
// CHECK:STDOUT:
|
||||
// CHECK:STDOUT: !2 = !{i32 7, !"Dwarf Version", i32 5}
|
||||
// CHECK:STDOUT: !3 = !{i32 2, !"Debug Info Version", i32 3}
|
||||
// CHECK:STDOUT: !7 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: null, size: 64)
|
||||
// CHECK:STDOUT: !8 = !{null, !7}
|
||||
// CHECK:STDOUT: !9 = !DISubroutineType(types: !8)
|
||||
// CHECK:STDOUT: !14 = !{!7, !7}
|
||||
// CHECK:STDOUT: !15 = !DISubroutineType(types: !14)
|
||||
// CHECK:STDOUT: !186 = !{i32 8, !"PIC Level", i32 2}
|
||||
// CHECK:STDOUT: !187 = !{i32 7, !"PIE Level", i32 2}
|
||||
// CHECK:STDOUT: !188 = !{i32 7, !"uwtable", i32 2}
|
||||
// CHECK:STDOUT: !189 = !{!"Simple C++ TBAA"}
|
||||
// CHECK:STDOUT: !190 = !{!"omnipotent char", !189, i64 0}
|
||||
// CHECK:STDOUT: !191 = !{!"int", !190, i64 0}
|
||||
// CHECK:STDOUT: !192 = !{!"__libc_errno", !191, i64 0}
|
||||
// CHECK:STDOUT: !193 = !{!192, !191, i64 0}
|
||||
// CHECK:STDOUT: !194 = !DIFile(filename: "receive.carbon", directory: "")
|
||||
// CHECK:STDOUT: !195 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !194, producer: "carbon", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug)
|
||||
// CHECK:STDOUT: !196 = !{!7}
|
||||
// CHECK:STDOUT: !197 = !DISubroutineType(types: !196)
|
||||
// CHECK:STDOUT: !198 = distinct !DISubprogram(name: "ReceiveVoidPtr", linkageName: "_CReceiveVoidPtr.Main", scope: null, file: !194, line: 6, type: !197, spFlags: DISPFlagDefinition, unit: !195)
|
||||
// CHECK:STDOUT: !201 = !DILocation(line: 7, column: 10, scope: !198)
|
||||
// CHECK:STDOUT: !202 = !DILocation(line: 7, column: 3, scope: !198)
|
||||
// CHECK:STDOUT: !203 = distinct !DISubprogram(name: "ConvertFromVoidPtr", linkageName: "_CConvertFromVoidPtr.Main", scope: null, file: !194, line: 10, type: !15, spFlags: DISPFlagDefinition, unit: !195, retainedNodes: !210)
|
||||
// CHECK:STDOUT: !204 = !DILocalVariable(arg: 1, scope: !203, type: !7)
|
||||
// CHECK:STDOUT: !209 = !DILocation(line: 11, column: 3, scope: !203)
|
||||
// CHECK:STDOUT: !210 = !{!204}
|
||||
// CHECK:STDOUT: !211 = distinct !DISubprogram(name: "ConvertFromConstVoidPtr", linkageName: "_CConvertFromConstVoidPtr.Main", scope: null, file: !194, line: 14, type: !15, spFlags: DISPFlagDefinition, unit: !195, retainedNodes: !218)
|
||||
// CHECK:STDOUT: !212 = !DILocalVariable(arg: 1, scope: !211, type: !7)
|
||||
// CHECK:STDOUT: !217 = !DILocation(line: 15, column: 3, scope: !211)
|
||||
// CHECK:STDOUT: !218 = !{!212}
|
||||
// CHECK:STDOUT: !19 = !DIFile(filename: "{{.*}}/prelude/types/optional.carbon", directory: "")
|
||||
// CHECK:STDOUT: !226 = !{i32 8, !"PIC Level", i32 2}
|
||||
// CHECK:STDOUT: !227 = !{i32 7, !"PIE Level", i32 2}
|
||||
// CHECK:STDOUT: !228 = !{i32 7, !"uwtable", i32 2}
|
||||
// CHECK:STDOUT: !229 = !{!"Simple C++ TBAA"}
|
||||
// CHECK:STDOUT: !230 = !{!"omnipotent char", !229, i64 0}
|
||||
// CHECK:STDOUT: !231 = !{!"int", !230, i64 0}
|
||||
// CHECK:STDOUT: !232 = !{!"__libc_errno", !231, i64 0}
|
||||
// CHECK:STDOUT: !233 = !{!232, !231, i64 0}
|
||||
// CHECK:STDOUT: !234 = !DIFile(filename: "receive.carbon", directory: "")
|
||||
// CHECK:STDOUT: !235 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !234, producer: "carbon", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug)
|
||||
// CHECK:STDOUT: !236 = !{!7}
|
||||
// CHECK:STDOUT: !237 = !DISubroutineType(types: !236)
|
||||
// CHECK:STDOUT: !238 = distinct !DISubprogram(name: "SelfDestruct", linkageName: "_CSelfDestruct.00ac8ef5084ea134:core.Destroy.Core", scope: null, file: !19, line: 164, type: !9, spFlags: DISPFlagDefinition, unit: !235, retainedNodes: !241)
|
||||
// CHECK:STDOUT: !239 = !DILocalVariable(arg: 1, scope: !238, type: !7)
|
||||
// CHECK:STDOUT: !240 = !DILocation(line: 164, column: 19, scope: !238)
|
||||
// CHECK:STDOUT: !241 = !{!239}
|
||||
// CHECK:STDOUT: !242 = distinct !DISubprogram(name: "ReceiveVoidPtr", linkageName: "_CReceiveVoidPtr.Main", scope: null, file: !234, line: 6, type: !237, spFlags: DISPFlagDefinition, unit: !235)
|
||||
// CHECK:STDOUT: !245 = !DILocation(line: 7, column: 10, scope: !242)
|
||||
// CHECK:STDOUT: !246 = !DILocation(line: 7, column: 3, scope: !242)
|
||||
// CHECK:STDOUT: !247 = distinct !DISubprogram(name: "ConvertFromVoidPtr", linkageName: "_CConvertFromVoidPtr.Main", scope: null, file: !234, line: 10, type: !15, spFlags: DISPFlagDefinition, unit: !235, retainedNodes: !254)
|
||||
// CHECK:STDOUT: !248 = !DILocalVariable(arg: 1, scope: !247, type: !7)
|
||||
// CHECK:STDOUT: !253 = !DILocation(line: 11, column: 3, scope: !247)
|
||||
// CHECK:STDOUT: !254 = !{!248}
|
||||
// CHECK:STDOUT: !255 = distinct !DISubprogram(name: "ConvertFromConstVoidPtr", linkageName: "_CConvertFromConstVoidPtr.Main", scope: null, file: !234, line: 14, type: !15, spFlags: DISPFlagDefinition, unit: !235, retainedNodes: !262)
|
||||
// CHECK:STDOUT: !256 = !DILocalVariable(arg: 1, scope: !255, type: !7)
|
||||
// CHECK:STDOUT: !261 = !DILocation(line: 15, column: 3, scope: !255)
|
||||
// CHECK:STDOUT: !262 = !{!256}
|
||||
// CHECK:STDOUT:
|
||||
|
||||
Reference in New Issue
Block a user