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 | 03071ab74c4f9efec0dab003eec5ec9c604a868c (patch) | |
tree | 92a8b4881bf9f4b4b2b7860b2e95000b749c3ca1 | |
parent | 18b779e3f4c42cda3e77f16109f163f2352029c1 (diff) | |
download | bcm5719-llvm-03071ab74c4f9efec0dab003eec5ec9c604a868c.tar.gz bcm5719-llvm-03071ab74c4f9efec0dab003eec5ec9c604a868c.zip |
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
-rw-r--r-- | llvm/include/llvm/CodeGen/ScheduleDAG.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/ScheduleDAG.h b/llvm/include/llvm/CodeGen/ScheduleDAG.h index 66bf8c5dd77..c49a9a7f569 100644 --- a/llvm/include/llvm/CodeGen/ScheduleDAG.h +++ b/llvm/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. |