Now that the inline cost analysis is a pass, we can easily have it
[oota-llvm.git] / include / llvm / Analysis / InlineCost.h
index 3d815291781516e7dbb3acae23c8c7c18e2eb6a3..bc7924e10fdcb6a38b519a8431379d0bf48cbb0e 100644 (file)
@@ -23,6 +23,7 @@ namespace llvm {
 class CallSite;
 class DataLayout;
 class Function;
+class TargetTransformInfo;
 
 namespace InlineConstants {
   // Various magic constants used to adjust heuristics.
@@ -100,6 +101,7 @@ public:
 /// \brief Cost analyzer used by inliner.
 class InlineCostAnalysis : public CallGraphSCCPass {
   const DataLayout *TD;
+  const TargetTransformInfo *TTI;
 
 public:
   static char ID;