diff options
author | Michael Gottesman <mgottesman@apple.com> | 2013-12-14 00:06:03 +0000 |
---|---|---|
committer | Michael Gottesman <mgottesman@apple.com> | 2013-12-14 00:06:03 +0000 |
commit | fd5c4b2c096851205443479135a038bdc97c8cb2 (patch) | |
tree | 9514741d23d767ae6c54cdd4d263c122f3a1cc33 /llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp | |
parent | f11917614d61ab062f638741a5f1a9df492d8014 (diff) | |
download | bcm5719-llvm-fd5c4b2c096851205443479135a038bdc97c8cb2.tar.gz bcm5719-llvm-fd5c4b2c096851205443479135a038bdc97c8cb2.zip |
[block-freq] Add the equivalent methods to MachineBlockFrequencyInfo and BlockFrequencyInfo that were added to BlockFrequencyImpl in r197285 and r197284.
llvm-svn: 197287
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp b/llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp index 64e8ecdec9e..86d30949a32 100644 --- a/llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp +++ b/llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp @@ -168,3 +168,19 @@ getBlockFreq(const MachineBasicBlock *MBB) const { MachineFunction *MachineBlockFrequencyInfo::getFunction() const { return MBFI->Fn; } + +raw_ostream & +MachineBlockFrequencyInfo::printBlockFreq(raw_ostream &OS, + const BlockFrequency Freq) const { + return MBFI->printBlockFreq(OS, Freq); +} + +raw_ostream & +MachineBlockFrequencyInfo::printBlockFreq(raw_ostream &OS, + const MachineBasicBlock *MBB) const { + return MBFI->printBlockFreq(OS, MBB); +} + +uint64_t MachineBlockFrequencyInfo::getEntryFrequency() const { + return MBFI->getEntryFrequency(); +} |