Add callback to allow target to adjust latency of schedule dependency edge.
[oota-llvm.git] / include / llvm / CodeGen / ScheduleDAG.h
index 237d491e8262238664dc7f19f2aed68ff16f5230..ead3d3db264b717b29288864825920f8b6945cf1 100644 (file)
@@ -145,6 +145,11 @@ namespace llvm {
       return Latency;
     }
 
+    /// setLatency - Set the latency for this edge.
+    void setLatency(unsigned Lat) {
+      Latency = Lat;
+    }
+
     //// getSUnit - Return the SUnit to which this edge points.
     SUnit *getSUnit() const {
       return Dep.getPointer();