Add an accesor for the isNormalMemory field in the SDep class.

llvm-svn: 61342
This commit is contained in:
Dan Gohman 2008-12-22 21:06:56 +00:00
parent 7782de7525
commit fd87a5088e
1 changed files with 7 additions and 0 deletions

View 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.