Add InlineCost class for represent the estimated cost of inlining a
[oota-llvm.git] / include / llvm / Transforms / IPO / InlinerPass.h
index 00950f78e8cfda5c781b60cb6aa059af84bc8722..082dd82a67ec6011aa6f689f4b8809d99d07f2c0 100644 (file)
@@ -18,6 +18,7 @@
 #define INLINER_H
 
 #include "llvm/CallGraphSCCPass.h"
+#include "llvm/Transforms/Utils/InlineCost.h"
 
 namespace llvm {
   class CallSite;
@@ -53,7 +54,7 @@ struct Inliner : public CallGraphSCCPass {
   /// returned is greater than the current inline threshold, the call site is
   /// not inlined.
   ///
-  virtual int getInlineCost(CallSite CS) = 0;
+  virtual InlineCost getInlineCost(CallSite CS) = 0;
 
   // getInlineFudgeFactor - Return a > 1.0 factor if the inliner should use a
   // higher threshold to determine if the function call should be inlined.