1 # RUN: llvm-profdata show -memop-sizes -ic-targets -function=foo %s | FileCheck %s --check-prefixes=MEMOP,MEMOP_SUM,ICALL,ICALL_SUM
2 # RUN: llvm-profdata show -memop-sizes -ic-targets -counts -text -function=foo %s | FileCheck %s --check-prefixes=TEXT,MEMOP_TEXT,ICALL_TEXT
3 # RUN: llvm-profdata merge -o %t.profdata %s
4 # RUN: llvm-profdata show -memop-sizes -ic-targets -function=foo %t.profdata | FileCheck %s --check-prefixes=MEMOP,MEMOP_SUM,ICALL,ICALL_SUM
5 # RUN: llvm-profdata merge -o %t.proftext -text %s
6 # RUN: llvm-profdata show -memop-sizes -ic-targets -function=foo %t.proftext| FileCheck %s --check-prefixes=MEMOP,MEMOP_SUM,ICALL,ICALL_SUM
8 # IR level Instrumentation Flag
39 # Value Kind IPVK_IndirectCallTarget
43 # Values for each site
50 #ICALL: Indirect Target Results:
51 #ICALL-NEXT: [ 1, ic2, 1000 ]
52 #ICALL-NEXT: [ 1, ic1, 100 ]
53 #ICALL-NEXT: [ 2, ic2, 20000 ]
55 # ValueKind = IPVK_MemOPSize:
70 #MEMOP: Memory Intrinsic Size Results:
71 #MEMOP-NEXT: [ 0, 1, 99 ]
72 #MEMOP-NEXT: [ 0, 2, 88 ]
73 #MEMOP-NEXT: [ 0, 3, 77 ]
74 #MEMOP-NEXT: [ 0, 9, 72 ]
75 #MEMOP-NEXT: [ 0, 4, 66 ]
76 #MEMOP-NEXT: [ 0, 5, 55 ]
77 #MEMOP-NEXT: [ 0, 6, 44 ]
78 #MEMOP-NEXT: [ 0, 7, 33 ]
79 #MEMOP-NEXT: [ 0, 8, 22 ]
81 #ICALL_SUM: Statistics for indirect call sites profile:
82 #ICALL_SUM: Total number of sites: 3
83 #ICALL_SUM: Total number of sites with values: 2
84 #ICALL_SUM: Total number of profiled values: 3
85 #ICALL_SUM: Value sites histogram:
86 #ICALL_SUM: NumTargets, SiteCount
90 #MEMOP_SUM: Statistics for memory intrinsic calls sizes profile:
91 #MEMOP_SUM: Total number of sites: 1
92 #MEMOP_SUM: Total number of sites with values: 1
93 #MEMOP_SUM: Total number of profiled values: 9
94 #MEMOP_SUM: Value sites histogram:
95 #MEMOP_SUM: NumTargets, SiteCount
98 #TEXT: # Num Value Kinds:
100 #ICALL_TEXT: # ValueKind = IPVK_IndirectCallTarget:
102 #ICALL_TEXT: # NumValueSites:
106 #ICALL_TEXT: ic2:1000
109 #ICALL_TEXT: ic2:20000
110 #MEMOP_TEXT: # ValueKind = IPVK_MemOPSize:
112 #MEMOP_TEXT: # NumValueSites: