diff options
author | Michael Gottesman <mgottesman@apple.com> | 2013-12-03 00:49:33 +0000 |
---|---|---|
committer | Michael Gottesman <mgottesman@apple.com> | 2013-12-03 00:49:33 +0000 |
commit | eae8ef479d2c6c81b2ff19d2f721e7273642bc40 (patch) | |
tree | e7d1aebb517c82613d09d20abe6cd444566675fe /include | |
parent | 5b93ae5ab5c648e1121c4b6ff4c9b6524de600d0 (diff) | |
download | llvm-eae8ef479d2c6c81b2ff19d2f721e7273642bc40.tar.gz llvm-eae8ef479d2c6c81b2ff19d2f721e7273642bc40.tar.bz2 llvm-eae8ef479d2c6c81b2ff19d2f721e7273642bc40.tar.xz |
Added MachineBlockFrequencyInfo::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.
This is the MI version of r194654.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196183 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/MachineBlockFrequencyInfo.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineBlockFrequencyInfo.h b/include/llvm/CodeGen/MachineBlockFrequencyInfo.h index a9c7bf7dbc..2bd51e8a75 100644 --- a/include/llvm/CodeGen/MachineBlockFrequencyInfo.h +++ b/include/llvm/CodeGen/MachineBlockFrequencyInfo.h @@ -1,4 +1,4 @@ -//====----- MachineBlockFrequencyInfo.h - MachineBlock Frequency Analysis ----====// +//====-- MachineBlockFrequencyInfo.h - MBB Frequency Analysis -*- C++ -*--====// // // The LLVM Compiler Infrastructure // @@ -49,6 +49,9 @@ public: /// the other block frequencies. We do this to avoid using of floating points. /// BlockFrequency getBlockFreq(const MachineBasicBlock *MBB) const; + + MachineFunction *getFunction() const; + void view() const; }; } |