|
| 1 | +; RUN: opt < %s -passes='default<O2>' -S | FileCheck %s |
| 2 | + |
| 3 | +; The code is from https://github.com/apple/llvm-project/blob/5c3acb099acec3f644d810ce67fb8b7076f2621a/lldb/test/API/lang/swift/async/stepping/step-in/task-switch/main.swift. |
| 4 | +; This is a DISubprogram with declaration. |
| 5 | + |
| 6 | +target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" |
| 7 | +target triple = "x86_64-apple-macosx12.0.0" |
| 8 | + |
| 9 | +%swift.async_func_pointer = type <{ i32, i32 }> |
| 10 | +%swift.protocol_conformance_descriptor = type { i32, i32, i32, i32 } |
| 11 | +%swift.type = type { i64 } |
| 12 | +%swift.full_existential_type = type { ptr, %swift.type } |
| 13 | +%swift.full_boxmetadata = type { ptr, ptr, %swift.type, i32, ptr } |
| 14 | +%swift.metadata_response = type { ptr, i64 } |
| 15 | +%Any = type { [24 x i8], ptr } |
| 16 | +%TSi = type <{ i64 }> |
| 17 | +%swift.async_task_and_context = type { ptr, ptr } |
| 18 | + |
| 19 | +@"$s4main5entryOAAyyYaFZTu" = hidden global %swift.async_func_pointer <{ i32 trunc (i64 sub (i64 ptrtoint (ptr @"$s4main5entryOAAyyYaFZ" to i64), i64 ptrtoint (ptr @"$s4main5entryOAAyyYaFZTu" to i64)) to i32), i32 16 }>, align 8 |
| 20 | +@"$s4main1fSiyYaFTu" = hidden global %swift.async_func_pointer <{ i32 trunc (i64 sub (i64 ptrtoint (ptr @"$s4main1fSiyYaF" to i64), i64 ptrtoint (ptr @"$s4main1fSiyYaFTu" to i64)) to i32), i32 16 }>, align 8 |
| 21 | +@"$sS2cMScAsWL" = linkonce_odr hidden global ptr null, align 8 |
| 22 | +@"$sScMScAsMc" = external global %swift.protocol_conformance_descriptor, align 4 |
| 23 | +@"$sSiN" = external global %swift.type, align 8 |
| 24 | +@"$sypN" = external global %swift.full_existential_type |
| 25 | +@"$sytN" = external global %swift.full_existential_type |
| 26 | +@"symbolic IetH_" = linkonce_odr hidden constant <{ [5 x i8], i8 }> <{ [5 x i8] c"IetH_", i8 0 }>, section "__TEXT,__swift5_typeref, regular", no_sanitize_address, align 2 |
| 27 | +@"\01l__swift5_reflection_descriptor" = private constant { i32, i32, i32, i32 } { i32 1, i32 0, i32 0, i32 trunc (i64 sub (i64 ptrtoint (ptr @"symbolic IetH_" to i64), i64 ptrtoint (ptr getelementptr inbounds ({ i32, i32, i32, i32 }, ptr @"\01l__swift5_reflection_descriptor", i32 0, i32 3) to i64)) to i32) }, section "__TEXT,__swift5_capture, regular", no_sanitize_address, align 4 |
| 28 | +@metadata = private constant %swift.full_boxmetadata { ptr @objectdestroy, ptr null, %swift.type { i64 1024 }, i32 16, ptr @"\01l__swift5_reflection_descriptor" }, align 8 |
| 29 | +@"$sytWV" = external global ptr, align 8 |
| 30 | +@.str.4.main = private constant [5 x i8] c"main\00" |
| 31 | +@"$s4mainMXM" = linkonce_odr hidden constant <{ i32, i32, i32 }> <{ i32 0, i32 0, i32 trunc (i64 sub (i64 ptrtoint (ptr @.str.4.main to i64), i64 ptrtoint (ptr getelementptr inbounds (<{ i32, i32, i32 }>, ptr @"$s4mainMXM", i32 0, i32 2) to i64)) to i32) }>, section "__TEXT,__constg_swiftt", align 4 |
| 32 | +@.str.5.entry = private constant [6 x i8] c"entry\00" |
| 33 | +@".str.1.\0A" = private unnamed_addr constant [2 x i8] c"\0A\00" |
| 34 | +@".str.1. " = private unnamed_addr constant [2 x i8] c" \00" |
| 35 | +@".str.25.Swift/BridgeStorage.swift" = private unnamed_addr constant [26 x i8] c"Swift/BridgeStorage.swift\00" |
| 36 | +@.str.0. = private unnamed_addr constant [1 x i8] zeroinitializer |
| 37 | +@".str.11.Fatal error" = private unnamed_addr constant [12 x i8] c"Fatal error\00" |
| 38 | +@__swift_reflection_version = linkonce_odr hidden constant i16 3 |
| 39 | + |
| 40 | +define hidden swifttailcc void @"$s4main5entryOAAyyYaFZ"(ptr swiftasync %0) #0 !dbg !38 { |
| 41 | +entry: |
| 42 | + %1 = alloca ptr, align 8 |
| 43 | + %x.debug = alloca i64, align 8 |
| 44 | + %2 = call token @llvm.coro.id.async(i32 16, i32 16, i32 0, ptr @"$s4main5entryOAAyyYaFZTu") |
| 45 | + %3 = call ptr @llvm.coro.begin(token %2, ptr null) |
| 46 | + store ptr %0, ptr %1, align 8 |
| 47 | + call void @llvm.memset.p0.i64(ptr align 8 %x.debug, i8 0, i64 8, i1 false) |
| 48 | + %4 = call swiftcc %swift.metadata_response @"$sScMMa"(i64 0) #13 |
| 49 | + %5 = extractvalue %swift.metadata_response %4, 0 |
| 50 | + %6 = call swiftcc ptr @"$sScM6sharedScMvgZ"(ptr swiftself %5) |
| 51 | + %7 = load i32, ptr getelementptr inbounds (%swift.async_func_pointer, ptr @"$s4main1fSiyYaFTu", i32 0, i32 1), align 8 |
| 52 | + %8 = zext i32 %7 to i64 |
| 53 | + %9 = call swiftcc ptr @swift_task_alloc(i64 %8) #3 |
| 54 | + call void @llvm.lifetime.start.p0(i64 -1, ptr %9) |
| 55 | + %10 = load ptr, ptr %1, align 8 |
| 56 | + %11 = getelementptr inbounds <{ ptr, ptr }>, ptr %9, i32 0, i32 0 |
| 57 | + store ptr %10, ptr %11, align 8 |
| 58 | + %12 = call ptr @llvm.coro.async.resume() |
| 59 | + %13 = getelementptr inbounds <{ ptr, ptr }>, ptr %9, i32 0, i32 1 |
| 60 | + store ptr %12, ptr %13, align 8 |
| 61 | + %14 = call { ptr, i64 } (i32, ptr, ptr, ...) @llvm.coro.suspend.async.sl_p0i64s(i32 0, ptr %12, ptr @__swift_async_resume_project_context, ptr @"$s4main5entryOAAyyYaFZ.0", ptr @"$s4main1fSiyYaF", ptr %9) |
| 62 | + %15 = extractvalue { ptr, i64 } %14, 0 |
| 63 | + %16 = call ptr @__swift_async_resume_project_context(ptr %15) |
| 64 | + store ptr %16, ptr %1, align 8 |
| 65 | + %17 = extractvalue { ptr, i64 } %14, 1 |
| 66 | + call swiftcc void @swift_task_dealloc(ptr %9) #3 |
| 67 | + call void @llvm.lifetime.end.p0(i64 -1, ptr %9) |
| 68 | + %18 = call ptr @"$sS2cMScAsWl"() #13 |
| 69 | + %19 = call swiftcc { i64, i64 } @"$sScA15unownedExecutorScevgTj"(ptr swiftself %6, ptr %5, ptr %18) |
| 70 | + %20 = extractvalue { i64, i64 } %19, 0 |
| 71 | + %21 = extractvalue { i64, i64 } %19, 1 |
| 72 | + %22 = call ptr @llvm.coro.async.resume() |
| 73 | + %23 = load ptr, ptr %1, align 8 |
| 74 | + %24 = load ptr, ptr %1, align 8 |
| 75 | + %25 = call { ptr } (i32, ptr, ptr, ...) @llvm.coro.suspend.async.sl_p0s(i32 0, ptr %22, ptr @__swift_async_resume_get_context, ptr @"$s4main5entryOAAyyYaFZ.1", ptr %22, i64 %20, i64 %21, ptr %24) |
| 76 | + %26 = extractvalue { ptr } %25, 0 |
| 77 | + %27 = call ptr @__swift_async_resume_get_context(ptr %26) |
| 78 | + store ptr %27, ptr %1, align 8 |
| 79 | + store i64 %17, ptr %x.debug, align 8 |
| 80 | + call void asm sideeffect "", "r"(ptr %x.debug) |
| 81 | + %28 = call swiftcc { ptr, ptr } @"$ss27_allocateUninitializedArrayySayxG_BptBwlFyp_Tg5"(i64 1) |
| 82 | + %29 = extractvalue { ptr, ptr } %28, 0 |
| 83 | + %30 = extractvalue { ptr, ptr } %28, 1 |
| 84 | + %31 = getelementptr inbounds %Any, ptr %30, i32 0, i32 1 |
| 85 | + store ptr @"$sSiN", ptr %31, align 8 |
| 86 | + %32 = getelementptr inbounds %Any, ptr %30, i32 0, i32 0 |
| 87 | + %33 = getelementptr inbounds %Any, ptr %30, i32 0, i32 0 |
| 88 | + %._value = getelementptr inbounds %TSi, ptr %33, i32 0, i32 0 |
| 89 | + store i64 %17, ptr %._value, align 8 |
| 90 | + %34 = call swiftcc ptr @"$ss27_finalizeUninitializedArrayySayxGABnlF"(ptr %29, ptr getelementptr inbounds (%swift.full_existential_type, ptr @"$sypN", i32 0, i32 1)) |
| 91 | + %35 = call swiftcc { i64, ptr } @"$ss5print_9separator10terminatoryypd_S2StFfA0_"() |
| 92 | + %36 = extractvalue { i64, ptr } %35, 0 |
| 93 | + %37 = extractvalue { i64, ptr } %35, 1 |
| 94 | + %38 = call swiftcc { i64, ptr } @"$ss5print_9separator10terminatoryypd_S2StFfA1_"() |
| 95 | + %39 = extractvalue { i64, ptr } %38, 0 |
| 96 | + %40 = extractvalue { i64, ptr } %38, 1 |
| 97 | + call swiftcc void @"$ss5print_9separator10terminatoryypd_S2StF"(ptr %34, i64 %36, ptr %37, i64 %39, ptr %40) |
| 98 | + call void @swift_bridgeObjectRelease(ptr %40) #1 |
| 99 | + call void @swift_bridgeObjectRelease(ptr %37) #1 |
| 100 | + call void @swift_bridgeObjectRelease(ptr %34) #1 |
| 101 | + call void @swift_release(ptr %6) #1 |
| 102 | + call void asm sideeffect "", "r"(ptr %x.debug) |
| 103 | + %41 = load ptr, ptr %1, align 8 |
| 104 | + %42 = getelementptr inbounds <{ ptr, ptr }>, ptr %41, i32 0, i32 1 |
| 105 | + %43 = load ptr, ptr %42, align 8 |
| 106 | + %44 = load ptr, ptr %1, align 8 |
| 107 | + %45 = call i1 (ptr, i1, ...) @llvm.coro.end.async(ptr %3, i1 false, ptr @"$s4main5entryOAAyyYaFZ.0.1", ptr %43, ptr %44) |
| 108 | + unreachable |
| 109 | +} |
| 110 | + |
| 111 | +; Function Attrs: nounwind |
| 112 | +declare token @llvm.coro.id.async(i32, i32, i32, ptr) #1 |
| 113 | + |
| 114 | +; Function Attrs: cold noreturn nounwind memory(inaccessiblemem: write) |
| 115 | +declare void @llvm.trap() #2 |
| 116 | + |
| 117 | +; Function Attrs: nounwind |
| 118 | +declare ptr @llvm.coro.begin(token, ptr writeonly) #1 |
| 119 | + |
| 120 | +declare swiftcc %swift.metadata_response @"$sScMMa"(i64) #0 |
| 121 | + |
| 122 | +declare swiftcc ptr @"$sScM6sharedScMvgZ"(ptr swiftself) #0 |
| 123 | + |
| 124 | +declare swifttailcc void @"$s4main1fSiyYaF"(ptr swiftasync) #0 |
| 125 | + |
| 126 | +; Function Attrs: nounwind memory(argmem: readwrite) |
| 127 | +declare swiftcc ptr @swift_task_alloc(i64) #3 |
| 128 | + |
| 129 | +; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) |
| 130 | +declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #4 |
| 131 | + |
| 132 | +; Function Attrs: nomerge nounwind |
| 133 | +declare ptr @llvm.coro.async.resume() #5 |
| 134 | + |
| 135 | +; Function Attrs: alwaysinline nounwind |
| 136 | +define linkonce_odr hidden ptr @__swift_async_resume_project_context(ptr %0) #6 { |
| 137 | +entry: |
| 138 | + %1 = load ptr, ptr %0, align 8 |
| 139 | + %2 = call ptr @llvm.swift.async.context.addr() |
| 140 | + store ptr %1, ptr %2, align 8 |
| 141 | + ret ptr %1 |
| 142 | +} |
| 143 | + |
| 144 | +; Function Attrs: nounwind |
| 145 | +declare ptr @llvm.swift.async.context.addr() #1 |
| 146 | + |
| 147 | +; Function Attrs: nounwind |
| 148 | +define internal swifttailcc void @"$s4main5entryOAAyyYaFZ.0"(ptr %0, ptr %1) #1 { |
| 149 | +entry: |
| 150 | + musttail call swifttailcc void %0(ptr swiftasync %1) |
| 151 | + ret void |
| 152 | +} |
| 153 | + |
| 154 | +; Function Attrs: nomerge nounwind |
| 155 | +declare { ptr, i64 } @llvm.coro.suspend.async.sl_p0i64s(i32, ptr, ptr, ...) #5 |
| 156 | + |
| 157 | +; Function Attrs: nounwind memory(argmem: readwrite) |
| 158 | +declare swiftcc void @swift_task_dealloc(ptr) #3 |
| 159 | + |
| 160 | +; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) |
| 161 | +declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #4 |
| 162 | + |
| 163 | +declare swiftcc { i64, i64 } @"$sScA15unownedExecutorScevgTj"(ptr swiftself, ptr, ptr) #0 |
| 164 | + |
| 165 | +; Function Attrs: noinline nounwind memory(none) |
| 166 | +declare ptr @"$sS2cMScAsWl"() #7 |
| 167 | + |
| 168 | +; Function Attrs: nounwind memory(read) |
| 169 | +declare ptr @swift_getWitnessTable(ptr, ptr, ptr) #8 |
| 170 | + |
| 171 | +; Function Attrs: nounwind |
| 172 | +define linkonce_odr hidden ptr @__swift_async_resume_get_context(ptr %0) #9 { |
| 173 | +entry: |
| 174 | + ret ptr %0 |
| 175 | +} |
| 176 | + |
| 177 | +; Function Attrs: nounwind |
| 178 | +define internal swifttailcc void @"$s4main5entryOAAyyYaFZ.1"(ptr %0, i64 %1, i64 %2, ptr %3) #1 { |
| 179 | +entry: |
| 180 | + musttail call swifttailcc void @swift_task_switch(ptr swiftasync %3, ptr %0, i64 %1, i64 %2) #1 |
| 181 | + ret void |
| 182 | +} |
| 183 | + |
| 184 | +; Function Attrs: nounwind |
| 185 | +declare swifttailcc void @swift_task_switch(ptr, ptr, i64, i64) #1 |
| 186 | + |
| 187 | +; Function Attrs: nomerge nounwind |
| 188 | +declare { ptr } @llvm.coro.suspend.async.sl_p0s(i32, ptr, ptr, ...) #5 |
| 189 | + |
| 190 | +; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write) |
| 191 | +declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #10 |
| 192 | + |
| 193 | +declare swiftcc { ptr, ptr } @"$ss27_allocateUninitializedArrayySayxG_BptBwlFyp_Tg5"(i64) #0 |
| 194 | + |
| 195 | +declare swiftcc ptr @"$ss27_finalizeUninitializedArrayySayxGABnlF"(ptr, ptr) #0 |
| 196 | + |
| 197 | +declare swiftcc { i64, ptr } @"$ss5print_9separator10terminatoryypd_S2StFfA0_"() #0 |
| 198 | + |
| 199 | +declare swiftcc { i64, ptr } @"$ss5print_9separator10terminatoryypd_S2StFfA1_"() #0 |
| 200 | + |
| 201 | +declare swiftcc void @"$ss5print_9separator10terminatoryypd_S2StF"(ptr, i64, ptr, i64, ptr) #0 |
| 202 | + |
| 203 | +; Function Attrs: nounwind |
| 204 | +declare void @swift_bridgeObjectRelease(ptr) #1 |
| 205 | + |
| 206 | +; Function Attrs: nounwind |
| 207 | +declare void @swift_release(ptr) #1 |
| 208 | + |
| 209 | +; Function Attrs: nounwind |
| 210 | +define internal swifttailcc void @"$s4main5entryOAAyyYaFZ.0.1"(ptr %0, ptr %1) #1 { |
| 211 | +entry: |
| 212 | + musttail call swifttailcc void %0(ptr swiftasync %1) |
| 213 | + ret void |
| 214 | +} |
| 215 | + |
| 216 | +; Function Attrs: nounwind |
| 217 | +declare i1 @llvm.coro.end.async(ptr, i1, ...) #1 |
| 218 | + |
| 219 | +; Function Attrs: nounwind |
| 220 | +declare swifttailcc void @"$s4main1fSiyYaF.0"(ptr, ptr, i64) #1 |
| 221 | + |
| 222 | +; Function Attrs: noreturn |
| 223 | +declare void @exit(i32 noundef) #11 |
| 224 | + |
| 225 | +declare swiftcc void @objectdestroy(ptr swiftself) #0 |
| 226 | + |
| 227 | +; Function Attrs: nounwind |
| 228 | +declare void @swift_deallocObject(ptr, i64, i64) #1 |
| 229 | + |
| 230 | +; Function Attrs: nounwind |
| 231 | +declare ptr @swift_allocObject(ptr, i64, i64) #1 |
| 232 | + |
| 233 | +; Function Attrs: nomerge nounwind |
| 234 | +declare { ptr, ptr } @llvm.coro.suspend.async.sl_p0p0s(i32, ptr, ptr, ...) #5 |
| 235 | + |
| 236 | +; Function Attrs: nounwind memory(argmem: readwrite) |
| 237 | +declare swiftcc %swift.async_task_and_context @swift_task_create(i64, i64, ptr, ptr, ptr) #3 |
| 238 | + |
| 239 | +; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none) |
| 240 | +declare i1 @llvm.expect.i1(i1, i1) #12 |
| 241 | + |
| 242 | +attributes #0 = { "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="penryn" "target-features"="+cx16,+cx8,+fxsr,+mmx,+sahf,+sse,+sse2,+sse3,+sse4.1,+ssse3,+x87" "tune-cpu"="generic" } |
| 243 | +attributes #1 = { nounwind } |
| 244 | +attributes #2 = { cold noreturn nounwind memory(inaccessiblemem: write) } |
| 245 | +attributes #3 = { nounwind memory(argmem: readwrite) } |
| 246 | +attributes #4 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) } |
| 247 | +attributes #5 = { nomerge nounwind } |
| 248 | +attributes #6 = { alwaysinline nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="penryn" "target-features"="+cx16,+cx8,+fxsr,+mmx,+sahf,+sse,+sse2,+sse3,+sse4.1,+ssse3,+x87" "tune-cpu"="generic" } |
| 249 | +attributes #7 = { noinline nounwind memory(none) "frame-pointer"="non-leaf" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="penryn" "target-features"="+cx16,+cx8,+fxsr,+mmx,+sahf,+sse,+sse2,+sse3,+sse4.1,+ssse3,+x87" "tune-cpu"="generic" } |
| 250 | +attributes #8 = { nounwind memory(read) } |
| 251 | +attributes #9 = { nounwind "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="penryn" "target-features"="+cx16,+cx8,+fxsr,+mmx,+sahf,+sse,+sse2,+sse3,+sse4.1,+ssse3,+x87" "tune-cpu"="generic" } |
| 252 | +attributes #10 = { nocallback nofree nounwind willreturn memory(argmem: write) } |
| 253 | +attributes #11 = { noreturn "frame-pointer"="all" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="penryn" "target-features"="+cx16,+cx8,+fxsr,+mmx,+sahf,+sse,+sse2,+sse3,+sse4.1,+ssse3,+x87" "tune-cpu"="generic" } |
| 254 | +attributes #12 = { nocallback nofree nosync nounwind willreturn memory(none) } |
| 255 | +attributes #13 = { nounwind memory(none) } |
| 256 | + |
| 257 | +!llvm.dbg.cu = !{!0} |
| 258 | +!swift.module.flags = !{!15} |
| 259 | +!llvm.module.flags = !{!16, !17, !18, !19, !20, !21, !22, !23, !24, !25, !26, !27, !28, !29, !30} |
| 260 | +!llvm.linker.options = !{!31, !32, !33, !34, !35, !36, !37} |
| 261 | + |
| 262 | +!0 = distinct !DICompileUnit(language: DW_LANG_Swift, file: !1, producer: "Apple Swift version 5.9-dev (LLVM 79f8de4f4f8ad05, Swift 3f522148c284926)", isOptimized: false, runtimeVersion: 5, emissionKind: FullDebug, imports: !2) |
| 263 | +!1 = !DIFile(filename: "/Users/dianqk/swift-project/llvm-project/lldb/test/API/lang/swift/async/stepping/step-in/task-switch/main.swift", directory: "/Users/dianqk/swift-project") |
| 264 | +!2 = !{!3, !5, !7, !9, !11, !13} |
| 265 | +!3 = !DIImportedEntity(tag: DW_TAG_imported_module, scope: !1, entity: !4, file: !1) |
| 266 | +!4 = !DIModule(scope: null, name: "main", includePath: "/Users/dianqk/swift-project/llvm-project/lldb/test/API/lang/swift/async/stepping/step-in/task-switch") |
| 267 | +!5 = !DIImportedEntity(tag: DW_TAG_imported_module, scope: !1, entity: !6, file: !1) |
| 268 | +!6 = !DIModule(scope: null, name: "Swift", includePath: "/Users/dianqk/swift-project/build/buildbot_incremental/swift-macosx-x86_64/lib/swift/macosx/Swift.swiftmodule/x86_64-apple-macos.swiftmodule") |
| 269 | +!7 = !DIImportedEntity(tag: DW_TAG_imported_module, scope: !1, entity: !8, file: !1) |
| 270 | +!8 = !DIModule(scope: null, name: "_StringProcessing", includePath: "/Users/dianqk/swift-project/build/buildbot_incremental/swift-macosx-x86_64/lib/swift/macosx/_StringProcessing.swiftmodule/x86_64-apple-macos.swiftmodule") |
| 271 | +!9 = !DIImportedEntity(tag: DW_TAG_imported_module, scope: !1, entity: !10, file: !1) |
| 272 | +!10 = !DIModule(scope: null, name: "_SwiftConcurrencyShims", includePath: "/Users/dianqk/swift-project/build/buildbot_incremental/swift-macosx-x86_64/lib/swift/shims") |
| 273 | +!11 = !DIImportedEntity(tag: DW_TAG_imported_module, scope: !1, entity: !12, file: !1) |
| 274 | +!12 = !DIModule(scope: null, name: "_Concurrency", includePath: "/Users/dianqk/swift-project/build/buildbot_incremental/swift-macosx-x86_64/lib/swift/macosx/_Concurrency.swiftmodule/x86_64-apple-macos.swiftmodule") |
| 275 | +!13 = !DIImportedEntity(tag: DW_TAG_imported_module, scope: !1, entity: !14, file: !1) |
| 276 | +!14 = !DIModule(scope: null, name: "SwiftOnoneSupport", includePath: "/Users/dianqk/swift-project/build/buildbot_incremental/swift-macosx-x86_64/lib/swift/macosx/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule") |
| 277 | +!15 = !{!"standard-library", i1 false} |
| 278 | +!16 = !{i32 1, !"Objective-C Version", i32 2} |
| 279 | +!17 = !{i32 1, !"Objective-C Image Info Version", i32 0} |
| 280 | +!18 = !{i32 1, !"Objective-C Image Info Section", !"__DATA,__objc_imageinfo,regular,no_dead_strip"} |
| 281 | +!19 = !{i32 1, !"Objective-C Garbage Collection", i8 0} |
| 282 | +!20 = !{i32 1, !"Objective-C Class Properties", i32 64} |
| 283 | +!21 = !{i32 7, !"Dwarf Version", i32 4} |
| 284 | +!22 = !{i32 2, !"Debug Info Version", i32 3} |
| 285 | +!23 = !{i32 1, !"wchar_size", i32 4} |
| 286 | +!24 = !{i32 8, !"PIC Level", i32 2} |
| 287 | +!25 = !{i32 7, !"uwtable", i32 2} |
| 288 | +!26 = !{i32 7, !"frame-pointer", i32 2} |
| 289 | +!27 = !{i32 1, !"Swift Version", i32 7} |
| 290 | +!28 = !{i32 1, !"Swift ABI Version", i32 7} |
| 291 | +!29 = !{i32 1, !"Swift Major Version", i8 5} |
| 292 | +!30 = !{i32 1, !"Swift Minor Version", i8 9} |
| 293 | +!31 = !{!"-lswiftSwiftOnoneSupport"} |
| 294 | +!32 = !{!"-lswiftCore"} |
| 295 | +!33 = !{!"-lswift_Concurrency"} |
| 296 | +!34 = !{!"-lswift_StringProcessing"} |
| 297 | +!35 = !{!"-lobjc"} |
| 298 | +!36 = !{!"-lswiftCompatibility56"} |
| 299 | +!37 = !{!"-lswiftCompatibilityPacks"} |
| 300 | +!38 = distinct !DISubprogram(name: "main", linkageName: "$s4main5entryOAAyyYaFZ", scope: !39, file: !1, line: 2, type: !40, scopeLine: 2, spFlags: DISPFlagDefinition, unit: !0, declaration: !45, retainedNodes: !46) |
| 301 | +!39 = !DICompositeType(tag: DW_TAG_structure_type, name: "$s4main5entryOD", scope: !4, flags: DIFlagFwdDecl, runtimeLang: DW_LANG_Swift) |
| 302 | +!40 = !DISubroutineType(types: !41) |
| 303 | +!41 = !{!42, !43} |
| 304 | +!42 = !DICompositeType(tag: DW_TAG_structure_type, name: "$sytD", flags: DIFlagFwdDecl, runtimeLang: DW_LANG_Swift) |
| 305 | +!43 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "$s4main5entryOXMtD", file: !44, size: 8, flags: DIFlagArtificial, runtimeLang: DW_LANG_Swift, identifier: "$s4main5entryOXMtD") |
| 306 | +!44 = !DIFile(filename: "<compiler-generated>", directory: "") |
| 307 | +; CHECK-DAG: ![[DECL:[0-9]+]] = !DISubprogram({{.*}}, linkageName: "$s4main5entryOAAyyYaFZ" |
| 308 | +; CHECK-DAG: distinct !DISubprogram({{.*}}, linkageName: "$s4main5entryOAAyyYaFZ"{{.*}}, declaration: ![[DECL]] |
| 309 | +; CHECK-DAG: distinct !DISubprogram({{.*}}, linkageName: "$s4main5entryOAAyyYaFZ"{{.*}}, declaration: ![[DECL]] |
| 310 | +; CHECK-DAG: distinct !DISubprogram({{.*}}, linkageName: "$s4main5entryOAAyyYaFZ"{{.*}}, declaration: ![[DECL]] |
| 311 | +!45 = !DISubprogram(name: "main", linkageName: "$s4main5entryOAAyyYaFZ", scope: !39, file: !1, line: 2, type: !40, scopeLine: 2, spFlags: 0) |
| 312 | +!46 = !{!47, !49} |
| 313 | +!47 = !DILocalVariable(name: "self", arg: 1, scope: !38, file: !1, line: 2, type: !48, flags: DIFlagArtificial) |
| 314 | +!48 = !DIDerivedType(tag: DW_TAG_const_type, baseType: !43) |
| 315 | +!49 = !DILocalVariable(name: "x", scope: !50, file: !1, line: 3, type: !51) |
| 316 | +!50 = distinct !DILexicalBlock(scope: !38, file: !1, line: 3, column: 9) |
| 317 | +!51 = !DIDerivedType(tag: DW_TAG_const_type, baseType: !52) |
| 318 | +!52 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "Int", scope: !6, file: !53, size: 64, elements: !54, runtimeLang: DW_LANG_Swift, identifier: "$sSiD") |
| 319 | +!53 = !DIFile(filename: "build/buildbot_incremental/swift-macosx-x86_64/lib/swift/macosx/Swift.swiftmodule/x86_64-apple-macos.swiftmodule", directory: "/Users/dianqk/swift-project") |
| 320 | +!54 = !{} |
0 commit comments