[MachineCombiner] Work with itineraries
[oota-llvm.git] / include / llvm / CodeGen / TargetSchedule.h
index 751fac411ce6b4d949a993b666a3e5d290c50203..81054aba066f6d14e4fbbbf89ef85d5f78a33e45 100644 (file)
@@ -81,6 +81,12 @@ public:
     return nullptr;
   }
 
+  /// \brief Return true if this machine model includes an instruction-level
+  /// scheduling model or cycle-to-cycle itinerary data.
+  bool hasInstrSchedModelOrItineraries() const {
+    return hasInstrSchedModel() || hasInstrItineraries();
+  }
+
   /// \brief Identify the processor corresponding to the current subtarget.
   unsigned getProcessorID() const { return SchedModel.getProcessorID(); }