LTO API: add lto_module_create_from_memory_with_path.
[oota-llvm.git] / include / llvm / Analysis / BlockFrequencyInfo.h
index a123d0b8c1360f4e784af45d2f24a886b2bb45ee..e594448f478975e622d6229050ee0c56c2f2cc36 100644 (file)
@@ -50,6 +50,17 @@ public:
   /// comparison to the other block frequencies. We do this to avoid using of
   /// floating points.
   BlockFrequency getBlockFreq(const BasicBlock *BB) 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 BasicBlock *BB) const;
+
+  uint64_t getEntryFreq() const;
+
 };
 
 }