26 lines · plain
1; RUN: llc -o - --print-after-isel %s 2>&1 | FileCheck %s2 3target triple = "arm64-apple-ios13.4.0"4define void @foo() !dbg !6 {5 ; CHECK: DBG_VALUE 42, $noreg, !"myvar", !DIExpression()6 call void @llvm.dbg.value(metadata ptr inttoptr (i64 42 to ptr), metadata !9, metadata !DIExpression()), !dbg !117 ret void8}9 10declare void @llvm.dbg.value(metadata, metadata, metadata)11 12!llvm.dbg.cu = !{!0}13!llvm.module.flags = !{!5}14 15!0 = distinct !DICompileUnit(language: DW_LANG_C, file: !1, producer: "debugify", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)16!1 = !DIFile(filename: "t.ll", directory: "/")17!2 = !{}18!5 = !{i32 4, !"Debug Info Version", i32 3}19!6 = distinct !DISubprogram(name: "foo", linkageName: "foo", scope: null, file: !1, line: 1, type: !7, scopeLine: 1, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !8)20!7 = !DISubroutineType(types: !2)21!8 = !{!9}22!9 = !DILocalVariable(name: "myvar", scope: !6, file: !1, line: 1, type: !10)23!10 = !DIBasicType(name: "ty64", size: 64, encoding: DW_ATE_unsigned)24!11 = !DILocation(line: 1, column: 1, scope: !6)25!12 = !DILocation(line: 2, column: 1, scope: !6)26