|
| 1 | +; RUN: llc --mtriple="x86_64-" -O0 -fast-isel=false -global-isel=false -stop-after=finalize-isel %s -o - | FileCheck %s --check-prefix=X86 |
| 2 | +; RUN: llc --mtriple="x86_64-" -O0 -fast-isel -stop-after=finalize-isel %s -o - | FileCheck %s --check-prefix=X86 |
| 3 | + |
| 4 | +; X86-NOT: DBG_VALUE |
| 5 | +; X86: DBG_VALUE $r14, $noreg, !{{.*}}, !DIExpression(DW_OP_LLVM_entry_value, 1) |
| 6 | +; X86-NEXT: DBG_VALUE $r14, $noreg, !{{.*}}, !DIExpression(DW_OP_LLVM_entry_value, 1) |
| 7 | +; X86-NOT: DBG_VALUE |
| 8 | + |
| 9 | +define void @foo(ptr %unused_arg, ptr swiftasync %async_arg) !dbg !6 { |
| 10 | +entry: |
| 11 | + br label %other |
| 12 | + |
| 13 | +other: |
| 14 | + call void @llvm.dbg.value(metadata ptr %async_arg, metadata !12, metadata !DIExpression(DW_OP_LLVM_entry_value, 1)), !dbg !14 |
| 15 | + call void @llvm.dbg.value(metadata ptr %async_arg, metadata !12, metadata !DIExpression(DW_OP_LLVM_entry_value, 1)), !dbg !14 |
| 16 | + call void @consume(ptr %async_arg) |
| 17 | + ret void, !dbg !15 |
| 18 | +} |
| 19 | + |
| 20 | +declare void @llvm.dbg.value(metadata, metadata, metadata) |
| 21 | +declare void @consume(ptr %ptr) |
| 22 | + |
| 23 | +!llvm.dbg.cu = !{!0} |
| 24 | +!llvm.module.flags = !{!3, !4} |
| 25 | + |
| 26 | +!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug) |
| 27 | +!1 = !DIFile(filename: "x.c", directory: "/") |
| 28 | +!3 = !{i32 2, !"Dwarf Version", i32 4} |
| 29 | +!4 = !{i32 2, !"Debug Info Version", i32 3} |
| 30 | +!6 = distinct !DISubprogram(name: "f", scope: !1, file: !1, line: 1, type: !7, isLocal: false, isDefinition: true, scopeLine: 1, unit: !0) |
| 31 | +!7 = !DISubroutineType(types: !8) |
| 32 | +!8 = !{null, !9, !9, !9} |
| 33 | +!9 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !10, size: 64) |
| 34 | +!10 = !DIDerivedType(tag: DW_TAG_const_type, baseType: !11) |
| 35 | +!11 = !DIBasicType(name: "char", size: 8, encoding: DW_ATE_signed_char) |
| 36 | +!12 = !DILocalVariable(name: "a", scope: !6, file: !1, line: 1, type: !9) |
| 37 | +!14 = !DILocation(line: 1, column: 29, scope: !6) |
| 38 | +!15 = !DILocation(line: 1, column: 37, scope: !6) |
0 commit comments