Add isPredecessor to check whether a node is another's predecessor.

llvm-svn: 31406
This commit is contained in:
Evan Cheng 2006-11-03 03:02:18 +00:00
parent 94b29e9e91
commit fe70c79e67
1 changed files with 3 additions and 0 deletions

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