Add initial support for back-scheduling address computations,
[oota-llvm.git] / include / llvm / Target / TargetSubtarget.h
index fde8f44669ad04704b680b5b02b9f4f4e9cb9b7e..eca45eb0d74593b0c42ea1ffede5d8073f1b42d7 100644 (file)
@@ -29,6 +29,12 @@ protected: // Can only create subclasses...
   TargetSubtarget();
 public:
   virtual ~TargetSubtarget();
+
+  /// getSpecialAddressLatency - For targets where it is beneficial to
+  /// backschedule instructions that compute addresses, return a value
+  /// indicating the number of scheduling cycles of backscheduling that
+  /// should be attempted.
+  virtual unsigned getSpecialAddressLatency() const { return 0; }
 };
 
 } // End llvm namespace