entry_counts.ll 1.1 KB

123456789101112131415161718192021222324
  1. ; RUN: opt < %s -sample-profile -sample-profile-file=%S/Inputs/entry_counts.prof -S | FileCheck %s
  2. ; According to the profile, function empty() was called 13,293 times.
  3. ; CHECK: {{.*}} = !{!"function_entry_count", i64 13293}
  4. define void @empty() {
  5. entry:
  6. ret void, !dbg !9
  7. }
  8. !llvm.dbg.cu = !{!0}
  9. !llvm.module.flags = !{!6, !7}
  10. !llvm.ident = !{!8}
  11. !0 = !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)
  12. !1 = !DIFile(filename: "entry_counts.c", directory: "/usr/local/google/home/dnovillo/llvm/test/pgo")
  13. !2 = !{}
  14. !3 = !{!4}
  15. !4 = !DISubprogram(name: "empty", scope: !1, file: !1, line: 1, type: !5, isLocal: false, isDefinition: true, scopeLine: 1, isOptimized: false, function: void ()* @empty, variables: !2)
  16. !5 = !DISubroutineType(types: !2)
  17. !6 = !{i32 2, !"Dwarf Version", i32 4}
  18. !7 = !{i32 2, !"Debug Info Version", i32 3}
  19. !8 = !{!"clang version 3.7.0 (trunk 237249) (llvm/trunk 237261)"}
  20. !9 = !DILocation(line: 1, column: 15, scope: !4)