mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Add isBarrier to SDep
SDep had is* functions for the other kinds of order dependencies (isMustAlias, isWeak, isArtificial, etc.), but not for barrier. Upcoming commits in the PowerPC backend will make use of this function. llvm-svn: 197098
This commit is contained in:
parent
a4f824b0d6
commit
6840daed2f
@ -184,6 +184,12 @@ namespace llvm {
|
||||
|| Contents.OrdKind == MustAliasMem);
|
||||
}
|
||||
|
||||
/// isBarrier - Test if this is an Order dependence that is marked
|
||||
/// as a barrier.
|
||||
bool isBarrier() const {
|
||||
return getKind() == Order && Contents.OrdKind == Barrier;
|
||||
}
|
||||
|
||||
/// 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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user