diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-11-03 03:02:18 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-11-03 03:02:18 +0000 |
commit | 7ceebb437ebb18efefe72d8d2d0e9c762c3aa6b3 (patch) | |
tree | 6e9b184ed3d09f8f9f46a13ab5524d2f626ff447 | |
parent | bdd371c0ed2a07875f813978d2f4781a6e78685b (diff) |
Add isPredecessor to check whether a node is another's predecessor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31406 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/CodeGen/SelectionDAGNodes.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index c3e6dee232..9f56e177b8 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/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; } |