mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-31 08:16:47 +00:00 
			
		
		
		
	Summary: This adds three Function methods to handle function entry counts: setEntryCount() and getEntryCount(). Entry counts are stored under the MD_prof metadata node with the name "function_entry_count". They are unsigned 64 bit values set by profilers (instrumentation and sample profiler changes coming up). Added documentation for new profile metadata and tests. Reviewers: dexonsmith, bogner Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D9628 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237260 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			9 lines
		
	
	
		
			176 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
		
			176 B
		
	
	
	
		
			LLVM
		
	
	
	
	
	
| ; RUN: llvm-as < %s -o /dev/null 2>&1
 | |
| 
 | |
| ; Function foo() is called 2,304 times at runtime.
 | |
| define i32 @foo() !prof !0 {
 | |
|   ret i32 0
 | |
| }
 | |
| 
 | |
| !0 = !{!"function_entry_count", i32 2304}
 |