[llvm] BlockFrequencyInfo: Add PrintBlockFreq helper (PR #67512)
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 27 13:04:46 PDT 2023
================
@@ -533,16 +533,15 @@ class BlockFrequencyInfoImplBase {
void setBlockFreq(const BlockNode &Node, uint64_t Freq);
- raw_ostream &printBlockFreq(raw_ostream &OS, const BlockNode &Node) const;
- raw_ostream &printBlockFreq(raw_ostream &OS,
- const BlockFrequency &Freq) const;
-
uint64_t getEntryFreq() const {
assert(!Freqs.empty());
return Freqs[0].Integer;
}
};
+void PrintBlockFreqImpl(raw_ostream &OS, uint64_t EntryFreq,
----------------
mtrofin wrote:
this fct can be `const`, right?
https://github.com/llvm/llvm-project/pull/67512
More information about the llvm-commits
mailing list