Remove AsmPrinter::needsRelocationsForDwarfStringPool() since it's
[oota-llvm.git] / include / llvm / CodeGen / ScheduleDAG.h
index 66bf8c5dd77c5ed01b0d8ec1687431bbb1115ec9..c49a9a7f569a9bf1a42bc2235f2079a07e89148b 100644 (file)
@@ -184,6 +184,12 @@ namespace llvm {
                                     || Contents.OrdKind == MustAliasMem);
     }
 
+    /// isBarrier - Test if this is an Order dependence that is marked
+    /// as a barrier.
+    bool isBarrier() const {
+      return getKind() == Order && Contents.OrdKind == Barrier;
+    }
+
     /// isMustAlias - Test if this is an Order dependence that is marked
     /// as "must alias", meaning that the SUnits at either end of the edge
     /// have a memory dependence on a known memory location.