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 | a73959a988b118832b6c22e8c8dd312ac22a7c77 (patch) | |
tree | b665584722433064af11976ccc1c31ff1f4fe67e /include/llvm/CodeGen/MachineBlockFrequencyInfo.h | |
parent | d443867089c70dfad729b46dd0dc29205e9811ff (diff) | |
download | llvm-a73959a988b118832b6c22e8c8dd312ac22a7c77.tar.gz llvm-a73959a988b118832b6c22e8c8dd312ac22a7c77.tar.bz2 llvm-a73959a988b118832b6c22e8c8dd312ac22a7c77.tar.xz |
[block-freq] Add the equivalent methods to MachineBlockFrequencyInfo and BlockFrequencyInfo that were added to BlockFrequencyImpl in r197285 and r197284.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197287 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineBlockFrequencyInfo.h')
-rw-r--r-- | include/llvm/CodeGen/MachineBlockFrequencyInfo.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineBlockFrequencyInfo.h b/include/llvm/CodeGen/MachineBlockFrequencyInfo.h index 2bd51e8a75..761b59cb1d 100644 --- a/include/llvm/CodeGen/MachineBlockFrequencyInfo.h +++ b/include/llvm/CodeGen/MachineBlockFrequencyInfo.h @@ -52,6 +52,18 @@ public: MachineFunction *getFunction() const; void view() const; + + // Print the block frequency Freq to OS using the current functions entry + // frequency to convert freq into a relative decimal form. + raw_ostream &printBlockFreq(raw_ostream &OS, const BlockFrequency Freq) const; + + // Convenience method that attempts to look up the frequency associated with + // BB and print it to OS. + raw_ostream &printBlockFreq(raw_ostream &OS, + const MachineBasicBlock *MBB) const; + + uint64_t getEntryFrequency() const; + }; } |