Add isPredecessor to check whether a node is another's predecessor.
[oota-llvm.git] / include / llvm / CodeGen / SelectionDAGNodes.h
index c3e6dee23288544cb804e11288916e882b9c7881..9f56e177b886d12b1cb6e1f5dbd1d2800a78a11d 100644 (file)
@@ -815,6 +815,9 @@ public:
   // isOperand - Return true if this node is an operand of N.
   bool isOperand(SDNode *N) const;
 
+  // isPredecessor - Return true if this node is a predecessor of N.
+  bool isPredecessor(SDNode *N) const;
+
   /// getNumOperands - Return the number of values used by this operation.
   ///
   unsigned getNumOperands() const { return NumOperands; }