mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-31 08:16:47 +00:00 
			
		
		
		
	git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214548 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			57 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			57 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| 
 | |
| 
 | |
| # RUN: llvm-profdata merge %s -o %t.profdata
 | |
| 
 | |
| # RUN: llvm-profdata show %t.profdata --function function_count_only --counts | FileCheck %s -check-prefix=FUNC_COUNT_ONLY
 | |
| function_count_only
 | |
| 0
 | |
| 1
 | |
| 97531
 | |
| # FUNC_COUNT_ONLY:      Hash: 0x{{0+$}}
 | |
| # FUNC_COUNT_ONLY-NEXT: Counters: 1
 | |
| # FUNC_COUNT_ONLY-NEXT: Function count: 97531
 | |
| # FUNC_COUNT_ONLY-NEXT: Block counts: []
 | |
| 
 | |
| # RUN: llvm-profdata show %t.profdata --function "name with spaces" --counts | FileCheck %s -check-prefix=SPACES
 | |
| name with spaces
 | |
| 1024
 | |
| 2
 | |
| 0
 | |
| 0
 | |
| # SPACES:      Hash: 0x{{0+}}400
 | |
| # SPACES-NEXT: Counters: 2
 | |
| # SPACES-NEXT: Function count: 0
 | |
| # SPACES-NEXT: Block counts: [0]
 | |
| 
 | |
| # RUN: llvm-profdata show %t.profdata --function large_numbers --counts | FileCheck %s -check-prefix=LARGENUM
 | |
| large_numbers
 | |
| 4611686018427387903
 | |
| 6
 | |
| 2305843009213693952
 | |
| 1152921504606846976
 | |
| 576460752303423488
 | |
| 288230376151711744
 | |
| 144115188075855872
 | |
| 72057594037927936
 | |
| # LARGENUM:      Hash: 0x3fffffffffffffff
 | |
| # LARGENUM-NEXT: Counters: 6
 | |
| # LARGENUM-NEXT: Function count: 2305843009213693952
 | |
| # LARGENUM-NEXT: Block counts: [1152921504606846976, 576460752303423488, 288230376151711744, 144115188075855872, 72057594037927936]
 | |
| 
 | |
| # RUN: llvm-profdata show %t.profdata --function NOSUCHFUNC | FileCheck %s -check-prefix=NOSUCHFUNC
 | |
| # NOSUCHFUNC-NOT: Counters:
 | |
| # NOSUCHFUNC: Functions shown: 0
 | |
| 
 | |
| # RUN: llvm-profdata show %t.profdata --function _ | FileCheck %s -check-prefix=SOMEFUNCS
 | |
| # SOMEFUNCS: Counters:
 | |
| # SOMEFUNCS: function_count_only:
 | |
| # SOMEFUNCS: large_numbers:
 | |
| # SOMEFUNCS: Functions shown: 2
 | |
| 
 | |
| # RUN: llvm-profdata show %t.profdata | FileCheck %s -check-prefix=SUMMARY
 | |
| # SUMMARY-NOT: Counters:
 | |
| # SUMMARY-NOT: Functions shown:
 | |
| # SUMMARY: Total functions: 3
 | |
| # SUMMARY: Maximum function count: 2305843009213693952
 | |
| # SUMMARY: Maximum internal block count: 1152921504606846976
 |