blob: bfd65c0d651136939cdb6cdd4fe1b57fdea6bde9 [file] [log] [blame]
Diego Novilloffc84e32015-05-13 17:04:29 +00001; RUN: opt < %s -sample-profile -sample-profile-file=%S/Inputs/entry_counts.prof -S | FileCheck %s
2
3; According to the profile, function empty() was called 13,293 times.
4; CHECK: {{.*}} = !{!"function_entry_count", i64 13293}
5
6define void @empty() {
7entry:
8 ret void, !dbg !9
9}
10
11!llvm.dbg.cu = !{!0}
12!llvm.module.flags = !{!6, !7}
13!llvm.ident = !{!8}
14
Duncan P. N. Exon Smith55ca9642015-08-03 17:26:41 +000015!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 3.7.0 (trunk 237249) (llvm/trunk 237261)", isOptimized: false, runtimeVersion: 0, emissionKind: 2, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2)
Diego Novillo5eb5ad02015-10-26 18:14:44 +000016!1 = !DIFile(filename: "entry_counts.c", directory: ".")
Diego Novilloffc84e32015-05-13 17:04:29 +000017!2 = !{}
18!3 = !{!4}
Duncan P. N. Exon Smith814b8e92015-08-28 20:26:49 +000019!4 = distinct !DISubprogram(name: "empty", scope: !1, file: !1, line: 1, type: !5, isLocal: false, isDefinition: true, scopeLine: 1, isOptimized: false, function: void ()* @empty, variables: !2)
Diego Novilloffc84e32015-05-13 17:04:29 +000020!5 = !DISubroutineType(types: !2)
21!6 = !{i32 2, !"Dwarf Version", i32 4}
22!7 = !{i32 2, !"Debug Info Version", i32 3}
23!8 = !{!"clang version 3.7.0 (trunk 237249) (llvm/trunk 237261)"}
24!9 = !DILocation(line: 1, column: 15, scope: !4)