Add an accesor for the isNormalMemory field in the SDep class.
authorDan Gohman <gohman@apple.com>
Mon, 22 Dec 2008 21:06:56 +0000 (21:06 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 22 Dec 2008 21:06:56 +0000 (21:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61342 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/ScheduleDAG.h

index b7f2f575b025c40cdf58aabe8ac63852ed37a4a1..b90e5254ffd8196c48b533cf903a399ced7d3944 100644 (file)
@@ -166,6 +166,13 @@ namespace llvm {
       return getKind() != Data;
     }
 
+    /// isNormalMemory - Test if this is an Order dependence between two
+    /// memory accesses where both sides of the dependence access memory
+    /// in non-volatile and fully modeled ways.
+    bool isNormalMemory() const {
+      return getKind() == Order && Contents.Order.isNormalMemory;
+    }
+
     /// 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.