diff options
author | Hal Finkel <hfinkel@anl.gov> | 2013-12-12 00:19:07 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2013-12-12 00:19:07 +0000 |
commit | f15758b1d3b81f90a8c2b18c0487056d049d9bd9 (patch) | |
tree | 824e908fe8393785f85a2f507f862573c20e789b /include | |
parent | b0f8afd43c54b9b5cb39eb1740eb1fedc4e6471c (diff) | |
download | llvm-f15758b1d3b81f90a8c2b18c0487056d049d9bd9.tar.gz llvm-f15758b1d3b81f90a8c2b18c0487056d049d9bd9.tar.bz2 llvm-f15758b1d3b81f90a8c2b18c0487056d049d9bd9.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197098 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/ScheduleDAG.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/ScheduleDAG.h b/include/llvm/CodeGen/ScheduleDAG.h index 66bf8c5dd7..c49a9a7f56 100644 --- a/include/llvm/CodeGen/ScheduleDAG.h +++ b/include/llvm/CodeGen/ScheduleDAG.h @@ -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. |