1 Basic test for option -showcs:
2 RUN: llvm-profdata show %p/Inputs/cs.proftext | FileCheck %s -check-prefix=ZEROSUMMARY
3 RUN: llvm-profdata show %p/Inputs/noncs.proftext | FileCheck %s -check-prefix=SUMMARY
4 RUN: llvm-profdata show -showcs %p/Inputs/cs.proftext | FileCheck %s -check-prefix=SUMMARY
5 RUN: llvm-profdata show -showcs %p/Inputs/noncs.proftext | FileCheck %s -check-prefix=ZEROSUMMARY
6 ZEROSUMMARY: Instrumentation level: IR
7 ZEROSUMMARY: Total functions: 0
8 ZEROSUMMARY: Maximum function count: 0
9 ZEROSUMMARY: Maximum internal block count: 0
10 SUMMARY: Instrumentation level: IR
11 SUMMARY: Total functions: 1
12 SUMMARY: Maximum function count: 99938
13 SUMMARY: Maximum internal block count: 62
15 Basic tests for context sensitive profile dump functions:
16 RUN: llvm-profdata merge -o %t-combined.profdata %p/Inputs/cs.proftext %p/Inputs/noncs.proftext
18 RUN: llvm-profdata show --all-functions -counts -showcs %p/Inputs/cs.proftext > %t-text.csdump
19 RUN: llvm-profdata show --all-functions -counts -showcs %t-combined.profdata > %t-index.csdump
20 RUN: diff %t-text.csdump %t-index.csdump
22 RUN: llvm-profdata show --all-functions -counts %p/Inputs/noncs.proftext > %t-text.noncsdump
23 RUN: llvm-profdata show --all-functions -counts %t-combined.profdata > %t-index.noncsdump
24 RUN: diff %t-text.noncsdump %t-index.noncsdump
28 RUN: llvm-profdata merge -o %t.0.profdata %S/Inputs/CSIR_profile.proftext
29 RUN: llvm-profdata merge -text -o %t.0.proftext %t.0.profdata
30 RUN: diff -b %t.0.proftext %S/Inputs/CSIR_profile.proftext