Add isPredecessor to check whether a node is another's predecessor.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 3 Nov 2006 03:02:18 +0000 (03:02 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 3 Nov 2006 03:02:18 +0000 (03:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31406 91177308-0d34-0410-b5e6-96231b3b80d8

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; }