Continue factoring computeOperandLatency. Use it for ARM hasHighOperandLatency.
[oota-llvm.git] / include / llvm / Target / TargetInstrInfo.h
index 67b61ec77e3e855540f5d181e2fb30048f8bea38..ab848b0432b9d58dd5b1f529005b998ba232732b 100644 (file)
@@ -677,6 +677,15 @@ public:
                                 const MachineInstr *UseMI,
                                 unsigned UseIdx) const;
 
+  /// computeOperandLatency - Compute and return the latency of the given data
+  /// dependent def and use when the operand indices are already known.
+  ///
+  /// FindMin may be set to get the minimum vs. expected latency.
+  unsigned computeOperandLatency(const InstrItineraryData *ItinData,
+                                 const MachineInstr *DefMI, unsigned DefIdx,
+                                 const MachineInstr *UseMI, unsigned UseIdx,
+                                 bool FindMin = false) const;
+
   /// computeOperandLatency - Compute and return the latency of the given data
   /// dependent def and use. DefMI must be a valid def. UseMI may be NULL for
   /// an unknown use. If the subtarget allows, this may or may not need to call