[block-freq] Add the equivalent methods to MachineBlockFrequencyInfo and BlockFrequen...
[oota-llvm.git] / include / llvm / CodeGen / MachineBlockFrequencyInfo.h
index 2bd51e8a75dafafd7681b7c7301ca5f3857cc273..761b59cb1d2c4225486c64e967d2c3dd2fa31e13 100644 (file)
@@ -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;
+
 };
 
 }