brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 305aa82 Raw
34 lines · plain
1; RUN: llc -fast-isel -fast-isel-abort=1 -mtriple=x86_64-unknown-unknown -stop-after=finalize-isel %s -o - | \2; RUN:    FileCheck %s3 4 5define void @foo(ptr noalias nocapture %arg) !dbg !38 {6  %k.debug = alloca ptr, align 87  store ptr %arg, ptr %k.debug, align 8, !dbg !708  call void @llvm.dbg.value(metadata ptr %k.debug, metadata !55, metadata !DIExpression(DW_OP_deref)), !dbg !709; CHECK: #dbg_value(ptr %{{.*}}, ![[VAR:.*]], ![[EXPR:.*]], 10; CHECK: DBG_VALUE %stack.0{{.*}}, $noreg, ![[VAR]], ![[EXPR]]11  ret void, !dbg !7012}13 14declare void @llvm.dbg.value(metadata, metadata, metadata)15 16!llvm.module.flags = !{!6, !7, !8, !9}17!llvm.dbg.cu = !{!16}18 19!6 = !{i32 7, !"Dwarf Version", i32 4}20!7 = !{i32 2, !"Debug Info Version", i32 3}21!8 = !{i32 1, !"wchar_size", i32 4}22!9 = !{i32 8, !"PIC Level", i32 2}23!16 = distinct !DICompileUnit(language: DW_LANG_Swift, file: !17, producer: "blah", isOptimized: false, runtimeVersion: 5, emissionKind: FullDebug, sysroot: "blah", sdk: "blah")24!17 = !DIFile(filename: "blah", directory: "blah")25!38 = distinct !DISubprogram(name: "blah", linkageName: "$blah", scope: !17, file: !17, line: 34, type: !39, scopeLine: 34, spFlags: DISPFlagDefinition, unit: !16, retainedNodes: !43)26!39 = !DISubroutineType(types: !40)27!40 = !{!41, !41}28!41 = !DICompositeType(tag: DW_TAG_structure_type, name: "blah")29!43 = !{!49, !55}30!49 = !DILocalVariable(name: "x", arg: 1, scope: !38, file: !17, line: 34, type: !41)31!55 = !DILocalVariable(name: "k", scope: !56, file: !17, line: 36, type: !41)32!56 = distinct !DILexicalBlock(scope: !38, file: !17, line: 36, column: 9)33!70 = !DILocation(line: 36, column: 9, scope: !56)34