From: Dan Gohman Date: Tue, 16 Dec 2008 00:51:33 +0000 (+0000) Subject: Add a getSDep() access function to SUnitIterator to return the X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c3df7a8884971e72a5f0f25c951da0007b4ea503;p=oota-llvm.git 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 --- diff --git a/include/llvm/CodeGen/ScheduleDAG.h b/include/llvm/CodeGen/ScheduleDAG.h index 8ffe7f74389..0f82ae91fde 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]; } };