Hoist the HazardRecognizer out of the ScheduleDAGList.cpp file to where
[oota-llvm.git] / include / llvm / CodeGen / SelectionDAGISel.h
index 805699390dbc9b60cde5fcba525c92662dcb3093..ffaa1c6a35c0c4f2afeadbbc98c2cfd0b0643926 100644 (file)
@@ -28,6 +28,7 @@ namespace llvm {
   class MachineInstr;
   class TargetLowering;
   class FunctionLoweringInfo;
+  class HazardRecognizer;
 
 /// SelectionDAGISel - This is the common base class used for SelectionDAG-based
 /// pattern-matching instruction selectors.
@@ -61,6 +62,10 @@ public:
     return true;
   }
   
+  /// GetTargetHazardRecognizer - Return the hazard recognizer to use for this
+  /// target when scheduling the DAG.
+  virtual HazardRecognizer &GetTargetHazardRecognizer();
+  
 protected:
   /// Pick a safe ordering and emit instructions for each target node in the
   /// graph.