diff options
author | Dan Gohman <gohman@apple.com> | 2008-12-22 21:06:56 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-12-22 21:06:56 +0000 |
commit | fb8a1356b2aa2869b2a8ad13fe87bc43c349dd31 (patch) | |
tree | 8bfbc0c899a90cf9f03f130bd7636d0da1c891a8 | |
parent | 983bbbaf361bed826e650e3615c008195782c8f9 (diff) | |
download | external_llvm-fb8a1356b2aa2869b2a8ad13fe87bc43c349dd31.tar.gz external_llvm-fb8a1356b2aa2869b2a8ad13fe87bc43c349dd31.tar.bz2 external_llvm-fb8a1356b2aa2869b2a8ad13fe87bc43c349dd31.zip |
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
-rw-r--r-- | include/llvm/CodeGen/ScheduleDAG.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/ScheduleDAG.h b/include/llvm/CodeGen/ScheduleDAG.h index b7f2f575b0..b90e5254ff 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. |