1 # RUN: llvm-profdata show -ic-targets -all-functions %s | FileCheck %s --check-prefixes=ICTXT,ICSUM
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-prefixes=IC,ICSUM
36 # Value Kind IPVK_IndirectCallTarget
40 # Values for each site
48 #ICTXT: Indirect Call Site Count: 3
49 #ICTXT-NEXT: Indirect Target Results:
50 #ICTXT-NEXT: [ 1, foo, 100 ] (9.09%)
51 #ICTXT-NEXT: [ 1, foo2, 1000 ] (90.91%)
52 #ICTXT-NEXT: [ 2, foo2, 20000 ] (100.00%)
54 #IC: Indirect Call Site Count: 3
55 #IC-NEXT: Indirect Target Results:
56 #IC-NEXT: [ 1, foo2, 1000 ]
57 #IC-NEXT: [ 1, foo, 100 ]
58 #IC-NEXT: [ 2, foo2, 20000 ]
61 #ICTEXT-NEXT: foo2:1000
63 #ICTEXT-NEXT: foo2:20000
75 #ICSUM: Statistics for indirect call sites profile:
76 #ICSUM: Total number of sites: 3
77 #ICSUM: Total number of sites with values: 2
78 #ICSUM: Total number of profiled values: 3
79 #ICSUM: NumTargets, SiteCount