diff options
author | Dan Gohman <gohman@apple.com> | 2008-12-16 00:51:33 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-12-16 00:51:33 +0000 |
commit | 03069be9b7b7c790c80ad39e29a9ab408641c9c4 (patch) | |
tree | dfeaff7272f7ad069631a0c56f6db55c6cb2d8d9 | |
parent | 4a8adedbbac3a2a4459ca16e83d5224e426016e5 (diff) | |
download | external_llvm-03069be9b7b7c790c80ad39e29a9ab408641c9c4.zip external_llvm-03069be9b7b7c790c80ad39e29a9ab408641c9c4.tar.gz external_llvm-03069be9b7b7c790c80ad39e29a9ab408641c9c4.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.h | 7 |
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]; } }; |