brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.3 KiB · 84ef27b Raw
48 lines · plain
1; RUN: llc %s -stop-after=livedebugvars -o - -experimental-debug-variable-locations=false | FileCheck %s --check-prefix=CHECK2; RUN: llc %s -stop-after=livedebugvars -o - -experimental-debug-variable-locations=true | FileCheck %s --check-prefix=INSTRREF3source_filename = "/tmp/t.ll"4target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"5target triple = "x86_64-apple-macosx10.13"6 7%TSb = type <{ i1 }>8 9declare swiftcc i1 @f()10 11; Function Attrs: nounwind readnone speculatable12declare void @llvm.dbg.declare(metadata, metadata, metadata) #013 14; Function Attrs: nounwind readnone speculatable15define swiftcc void @g() #0 !dbg !5 {16entry:17  %0 = alloca %TSb, align 118  %1 = call swiftcc i1 @f(), !dbg !719  ; CHECK: DBG_VALUE $rcx, $noreg, !8, !DIExpression(),20  ; INSTRREF: DBG_VALUE_LIST !8, !DIExpression(DW_OP_LLVM_arg, 0), $ecx21  call void @llvm.dbg.value(metadata i1 %1, metadata !8, metadata !DIExpression()), !dbg !722  store i1 %1, ptr %0, align 1, !dbg !723  %2 = zext i1 %1 to i64, !dbg !724  call void asm sideeffect "", "r"(i64 %2), !dbg !725  ret void, !dbg !726}27 28; Function Attrs: nounwind readnone speculatable29declare void @llvm.dbg.value(metadata, metadata, metadata) #030 31attributes #0 = { nounwind readnone speculatable }32 33!llvm.dbg.cu = !{!0}34!llvm.module.flags = !{!3, !4}35 36!0 = distinct !DICompileUnit(language: DW_LANG_Swift, file: !1, isOptimized: false, runtimeVersion: 4, emissionKind: FullDebug, enums: !2, imports: !2)37!1 = !DIFile(filename: "t.swift", directory: "/tmp")38!2 = !{}39!3 = !{i32 2, !"Dwarf Version", i32 4}40!4 = !{i32 2, !"Debug Info Version", i32 3}41!5 = distinct !DISubprogram(name: "g", scope: !0, file: !1, line: 2, type: !6, isLocal: false, isDefinition: true, scopeLine: 2, isOptimized: false, unit: !0, retainedNodes: !2)42!6 = !DISubroutineType(types: !2)43!7 = !DILocation(line: 4, scope: !5)44!8 = !DILocalVariable(name: "hasInput", scope: !5, file: !1, line: 3, type: !9)45!9 = !DICompositeType(tag: DW_TAG_structure_type, name: "Bool", scope: !11, file: !10, size: 8, elements: !2, runtimeLang: DW_LANG_Swift, identifier: "_T0SbD")46!10 = !DIFile(filename: "Swift.swiftmodule", directory: "/usr/lib/swift/macosx/x86_64")47!11 = !DIModule(scope: null, name: "Swift", includePath: "/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk")48