summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-11-14 02:27:46 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-11-14 02:27:46 +0000
commite2058ff5bd4fa0397b57f6bdd84e5a5aa2343433 (patch)
treec5722f3dd4fad1be9603edd4d4f872406f940eb4 /include
parent3f4c031f21f953941802d3925b728994edc79a51 (diff)
downloadllvm-e2058ff5bd4fa0397b57f6bdd84e5a5aa2343433.tar.gz
llvm-e2058ff5bd4fa0397b57f6bdd84e5a5aa2343433.tar.bz2
llvm-e2058ff5bd4fa0397b57f6bdd84e5a5aa2343433.tar.xz
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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Analysis/BlockFrequencyInfo.h b/include/llvm/Analysis/BlockFrequencyInfo.h
index 64bd15c906..a123d0b8c1 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