• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: llvm-profdata show -ic-targets  -all-functions %s | FileCheck %s --check-prefix=IC
2# RUN: llvm-profdata show -ic-targets -counts -text -all-functions %s | FileCheck %s --check-prefix=ICTEXT
3# RUN: llvm-profdata merge -o %t.profdata  %s
4# RUN: llvm-profdata show -ic-targets  -all-functions %t.profdata | FileCheck %s --check-prefix=IC
5
6foo
7# Func Hash:
810
9# Num Counters:
102
11# Counter Values:
12999000
13359800
14
15foo2
16# Func Hash:
1710
18# Num Counters:
192
20# Counter Values:
211001000
22360200
23
24main
25# Func Hash:
2616650
27# Num Counters:
284
29# Counter Values:
302
312000
322000000
33999000
34# NumValueKinds
351
36# Value Kind IPVK_IndirectCallTarget
370
38# NumSites
393
40# Values for each site
410
422
43foo:100
44foo2:1000
451
46foo2:20000
47
48#IC: Indirect Call Site Count: 3
49#IC-NEXT:    Indirect Target Results:
50#IC-NEXT:	[ 1, foo, 100 ]
51#IC-NEXT:	[ 1, foo2, 1000 ]
52#IC-NEXT:	[ 2, foo2, 20000 ]
53
54#ICTEXT: foo:100
55#ICTEXT-NEXT: foo2:1000
56#ICTEXT-NEXT: 1
57#ICTEXT-NEXT: foo2:20000
58