summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-11-03 03:02:18 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-11-03 03:02:18 +0000
commitfe70c79e6714316b465c4f005dbeb7ac6549ea04 (patch)
treeb3440622fd6ca190b491483f671372b65857b2ab
parent94b29e9e915e127573621c19fbde31c1e0a474b4 (diff)
downloadbcm5719-llvm-fe70c79e6714316b465c4f005dbeb7ac6549ea04.tar.gz
bcm5719-llvm-fe70c79e6714316b465c4f005dbeb7ac6549ea04.zip
Add isPredecessor to check whether a node is another's predecessor.
llvm-svn: 31406
-rw-r--r--llvm/include/llvm/CodeGen/SelectionDAGNodes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
index c3e6dee2328..9f56e177b88 100644
--- a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -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; }
OpenPOWER on IntegriCloud