• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; ModuleID = 'dbg.ll'
2source_filename = "dbg.c"
3target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
4target triple = "x86_64-apple-macosx"
5
6; Function Attrs: noinline nounwind uwtable
7define signext i8 @foo(i8 signext %x) #0 !dbg !7 {
8entry:
9  call void @llvm.dbg.value(metadata i8 42, metadata !17, metadata !DIExpression(DW_OP_LLVM_convert, 32, DW_ATE_signed, DW_OP_stack_value)), !dbg !12
10  call void @llvm.dbg.value(metadata i8 %x, metadata !11, metadata !DIExpression()), !dbg !12
11  call void @llvm.dbg.value(metadata i8 %x, metadata !13, metadata !DIExpression(DW_OP_LLVM_convert, 8, DW_ATE_signed, DW_OP_LLVM_convert, 32, DW_ATE_signed, DW_OP_stack_value)), !dbg !15
12  call void @llvm.dbg.value(metadata i8 51, metadata !18, metadata !DIExpression(DW_OP_LLVM_convert_generic, DW_OP_stack_value)), !dbg !15
13  ret i8 %x, !dbg !16
14}
15
16; Function Attrs: nounwind readnone speculatable
17declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
18
19; Function Attrs: nounwind readnone speculatable
20declare void @llvm.dbg.value(metadata, metadata, metadata) #1
21
22attributes #0 = { noinline nounwind uwtable }
23attributes #1 = { nounwind readnone speculatable }
24
25!llvm.dbg.cu = !{!0}
26!llvm.module.flags = !{!3, !4, !5}
27!llvm.ident = !{!6}
28
29!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 9.0.0 (trunk 353791) (llvm/trunk 353801)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, nameTableKind: None)
30!1 = !DIFile(filename: "dbg.c", directory: "/tmp", checksumkind: CSK_MD5, checksum: "2a034da6937f5b9cf6dd2d89127f57fd")
31!2 = !{}
32!3 = !{i32 2, !"Dwarf Version", i32 4}
33!4 = !{i32 2, !"Debug Info Version", i32 3}
34!5 = !{i32 1, !"wchar_size", i32 4}
35!6 = !{!"clang version 9.0.0 (trunk 353791) (llvm/trunk 353801)"}
36!7 = distinct !DISubprogram(name: "foo", scope: !1, file: !1, line: 1, type: !8, scopeLine: 2, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
37!8 = !DISubroutineType(types: !9)
38!9 = !{!10, !10}
39!10 = !DIBasicType(name: "signed char", size: 8, encoding: DW_ATE_signed_char)
40!11 = !DILocalVariable(name: "x", arg: 1, scope: !7, file: !1, line: 1, type: !10)
41!12 = !DILocation(line: 1, column: 29, scope: !7)
42!13 = !DILocalVariable(name: "y", scope: !7, file: !1, line: 3, type: !14)
43!14 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
44!15 = !DILocation(line: 3, column: 14, scope: !7)
45!16 = !DILocation(line: 4, column: 3, scope: !7)
46!17 = !DILocalVariable(name: "c", scope: !7, file: !1, line: 3, type: !14)
47!18 = !DILocalVariable(name: "d", scope: !7, file: !1, line: 3, type: !14)
48