diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-08-05 21:51:16 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-05 21:51:16 +0000 |
| commit | 4f6f6d080f520d7bc7e87dfcf3b8bafda064fe1a (patch) | |
| tree | 1a10e3ed9b86cd04f63b316bd3ba197cfa51a733 /llvm/include | |
| parent | 1efb6b039195754ff8fd6189ef4b069c85a928f0 (diff) | |
| download | bcm5719-llvm-4f6f6d080f520d7bc7e87dfcf3b8bafda064fe1a.tar.gz bcm5719-llvm-4f6f6d080f520d7bc7e87dfcf3b8bafda064fe1a.zip | |
Make block and function count available via ProfileInfo.
- Part of optimal static profiling patch sequence by Andreas Neustifter.
llvm-svn: 78247
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/Analysis/ProfileInfo.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/include/llvm/Analysis/ProfileInfo.h b/llvm/include/llvm/Analysis/ProfileInfo.h index 47b437c1b25..7c369758430 100644 --- a/llvm/include/llvm/Analysis/ProfileInfo.h +++ b/llvm/include/llvm/Analysis/ProfileInfo.h @@ -42,6 +42,12 @@ namespace llvm { // BasicBlock to the entry block to indicate how many times the function was // entered. std::map<Edge, unsigned> EdgeCounts; + + // BlockCounts - Count the number of times a block is executed. + std::map<const BasicBlock*, unsigned> BlockCounts; + + // FunctionCounts - Count the number of times a function is executed. + std::map<const Function*, unsigned> FunctionCounts; public: static char ID; // Class identification, replacement for typeinfo virtual ~ProfileInfo(); // We want to be subclassed |

