1 REGENERATE: You need a checkout of clang with compiler-rt to generate the
2 REGENERATE: binary file here. These shell commands can be used to regenerate
5 REGENERATE: $ SRC=path/to/llvm
6 REGENERATE: $ CFE=$SRC/tools/clang
7 REGENERATE: $ TESTDIR=$SRC/test/tools/llvm-profdata
8 REGENERATE: $ CFE_TESTDIR=$CFE/test/Profile
9 REGENERATE: $ clang -o a.out -fprofile-instr-generate $CFE_TESTDIR/test/Profile/c-general.c
10 REGENERATE: $ LLVM_PROFILE_FILE=$TESTDIR/Inputs/c-general.profdata ./a.out
12 RUN: llvm-profdata show %p/Inputs/c-general.profdata -o - | FileCheck %s -check-prefix=CHECK
13 RUN: llvm-profdata show %p/Inputs/c-general.profdata -o - --function=switches | FileCheck %s -check-prefix=SWITCHES -check-prefix=CHECK
15 SWITCHES-LABEL: Counters:
16 SWITCHES-NEXT: switches:
17 SWITCHES-NEXT: Hash: 0x0000000000000013
18 SWITCHES-NEXT: Counters: 19
19 SWITCHES-NEXT: Function count: 1
20 SWITCHES-LABEL: Functions shown: 1
22 CHECK-LABEL: Total functions: 11
23 CHECK-NEXT: Maximum function count: 1
24 CHECK-NEXT: Maximum internal block count: 100