aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-12-16 00:51:33 +0000
committerDan Gohman <gohman@apple.com>2008-12-16 00:51:33 +0000
commitc3df7a8884971e72a5f0f25c951da0007b4ea503 (patch)
treedfeaff7272f7ad069631a0c56f6db55c6cb2d8d9
parente7c1c660ad420aa49f888ce955c4d17660616505 (diff)
downloadexternal_llvm-c3df7a8884971e72a5f0f25c951da0007b4ea503.zip
external_llvm-c3df7a8884971e72a5f0f25c951da0007b4ea503.tar.gz
external_llvm-c3df7a8884971e72a5f0f25c951da0007b4ea503.tar.bz2
Add a getSDep() access function to SUnitIterator to return the
current SDep. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61064 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/ScheduleDAG.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/ScheduleDAG.h b/include/llvm/CodeGen/ScheduleDAG.h
index 8ffe7f7..0f82ae9 100644
--- a/include/llvm/CodeGen/ScheduleDAG.h
+++ b/include/llvm/CodeGen/ScheduleDAG.h
@@ -549,10 +549,13 @@ namespace llvm {
const SUnit *getNode() const { return Node; }
/// isCtrlDep - Test if this is not an SDep::Data dependence.
bool isCtrlDep() const {
- return Node->Preds[Operand].isCtrl();
+ return getSDep().isCtrl();
}
bool isArtificialDep() const {
- return Node->Preds[Operand].isArtificial();
+ return getSDep().isArtificial();
+ }
+ const SDep &getSDep() const {
+ return Node->Preds[Operand];
}
};