diff options
author | Michael Gottesman <mgottesman@apple.com> | 2013-11-14 02:27:46 +0000 |
---|---|---|
committer | Michael Gottesman <mgottesman@apple.com> | 2013-11-14 02:27:46 +0000 |
commit | e2058ff5bd4fa0397b57f6bdd84e5a5aa2343433 (patch) | |
tree | c5722f3dd4fad1be9603edd4d4f872406f940eb4 /include | |
parent | 3f4c031f21f953941802d3925b728994edc79a51 (diff) | |
download | external_llvm-e2058ff5bd4fa0397b57f6bdd84e5a5aa2343433.zip external_llvm-e2058ff5bd4fa0397b57f6bdd84e5a5aa2343433.tar.gz external_llvm-e2058ff5bd4fa0397b57f6bdd84e5a5aa2343433.tar.bz2 |
Added BlockFrequencyInfo::view for displaying the block frequency propagation graph via graphviz.
This is useful for debugging issues in the BlockFrequency implementation since
one can easily visualize where probability mass and other errors occur in the
propagation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194654 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/BlockFrequencyInfo.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Analysis/BlockFrequencyInfo.h b/include/llvm/Analysis/BlockFrequencyInfo.h index 64bd15c..a123d0b 100644 --- a/include/llvm/Analysis/BlockFrequencyInfo.h +++ b/include/llvm/Analysis/BlockFrequencyInfo.h @@ -41,6 +41,8 @@ public: bool runOnFunction(Function &F); void print(raw_ostream &O, const Module *M) const; + const Function *getFunction() const; + void view() const; /// getblockFreq - Return block frequency. Return 0 if we don't have the /// information. Please note that initial frequency is equal to ENTRY_FREQ. It |