[llvm-commits] [llvm] r61342 - /llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h
Dan Gohman
gohman at apple.com
Mon Dec 22 13:06:57 PST 2008
Author: djg
Date: Mon Dec 22 15:06:56 2008
New Revision: 61342
URL: http://llvm.org/viewvc/llvm-project?rev=61342&view=rev
Log:
Add an accesor for the isNormalMemory field in the SDep class.
Modified:
llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h
Modified: llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h?rev=61342&r1=61341&r2=61342&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h (original)
+++ llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h Mon Dec 22 15:06:56 2008
@@ -166,6 +166,13 @@
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.
More information about the llvm-commits
mailing list