Add callback to allow target to adjust latency of schedule dependency edge.
[oota-llvm.git] / include / llvm / Target / TargetSubtarget.h
index eca45eb0d74593b0c42ea1ffede5d8073f1b42d7..c86e81554ced659d53670a9ac51c8970b66a158b 100644 (file)
@@ -16,6 +16,8 @@
 
 namespace llvm {
 
+class SDep;
+
 //===----------------------------------------------------------------------===//
 ///
 /// TargetSubtarget - Generic base class for all target subtargets.  All
@@ -35,6 +37,10 @@ public:
   /// indicating the number of scheduling cycles of backscheduling that
   /// should be attempted.
   virtual unsigned getSpecialAddressLatency() const { return 0; }
+
+  // adjustSchedDependency - Perform target specific adjustments to
+  // the latency of a schedule dependency.
+  virtual void adjustSchedDependency(SDep&) const { };
 };
 
 } // End llvm namespace