summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-12-03 00:49:33 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-12-03 00:49:33 +0000
commiteae8ef479d2c6c81b2ff19d2f721e7273642bc40 (patch)
treee7d1aebb517c82613d09d20abe6cd444566675fe /include
parent5b93ae5ab5c648e1121c4b6ff4c9b6524de600d0 (diff)
downloadllvm-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.h5
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;
};
}