blob: a8f6e8641c679b4e69f7b4a47a4c3e305b7a5f45 [file] [log] [blame]
Xinliang David Li062cde92016-01-08 05:45:21 +00001# RUN: llvm-profdata show -ic-targets -all-functions %s | FileCheck %s --check-prefix=ICTXT
Xinliang David Lie3bf4fd32015-12-14 18:44:01 +00002# 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
Xinliang David Li062cde92016-01-08 05:45:21 +000048#ICTXT: Indirect Call Site Count: 3
49#ICTXT-NEXT: Indirect Target Results:
50#ICTXT-NEXT: [ 1, foo, 100 ]
51#ICTXT-NEXT: [ 1, foo2, 1000 ]
52#ICTXT-NEXT: [ 2, foo2, 20000 ]
53
Xinliang David Lie3bf4fd32015-12-14 18:44:01 +000054#IC: Indirect Call Site Count: 3
55#IC-NEXT: Indirect Target Results:
Xinliang David Lie3bf4fd32015-12-14 18:44:01 +000056#IC-NEXT: [ 1, foo2, 1000 ]
Xinliang David Li062cde92016-01-08 05:45:21 +000057#IC-NEXT: [ 1, foo, 100 ]
Xinliang David Lie3bf4fd32015-12-14 18:44:01 +000058#IC-NEXT: [ 2, foo2, 20000 ]
59
60#ICTEXT: foo:100
61#ICTEXT-NEXT: foo2:1000
62#ICTEXT-NEXT: 1
63#ICTEXT-NEXT: foo2:20000