From: Dan Gohman Date: Mon, 22 Dec 2008 21:06:56 +0000 (+0000) Subject: Add an accesor for the isNormalMemory field in the SDep class. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=fb8a1356b2aa2869b2a8ad13fe87bc43c349dd31;p=oota-llvm.git Add an accesor for the isNormalMemory field in the SDep class. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61342 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/CodeGen/ScheduleDAG.h b/include/llvm/CodeGen/ScheduleDAG.h index b7f2f575b02..b90e5254ffd 100644 --- a/include/llvm/CodeGen/ScheduleDAG.h +++ b/include/llvm/CodeGen/ScheduleDAG.h @@ -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.