[llvm-commits] [llvm] r61064 - /llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h

Dan Gohman gohman at apple.com
Mon Dec 15 16:51:34 PST 2008


Author: djg
Date: Mon Dec 15 18:51:33 2008
New Revision: 61064

URL: http://llvm.org/viewvc/llvm-project?rev=61064&view=rev
Log:
Add a getSDep() access function to SUnitIterator to return the
current SDep.

Modified:
    llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h

Modified: llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h?rev=61064&r1=61063&r2=61064&view=diff

==============================================================================
--- llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h (original)
+++ llvm/trunk/include/llvm/CodeGen/ScheduleDAG.h Mon Dec 15 18:51:33 2008
@@ -549,10 +549,13 @@
     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];
     }
   };
 





More information about the llvm-commits mailing list