aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/SelectionDAGNodes.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-11-03 07:31:32 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-11-03 07:31:32 +0000
commite6e97e66a366cc7d2d103ac58db56e4bfd700b10 (patch)
treedfd768d59e4a9245a94caed05d0beb82299d4afc /include/llvm/CodeGen/SelectionDAGNodes.h
parent1a854be35295fd1c9c4d0d0f8894e720e22b5e4f (diff)
Fix comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31414 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SelectionDAGNodes.h')
-rw-r--r--include/llvm/CodeGen/SelectionDAGNodes.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h
index 9f56e177b8..1ed4dc43c5 100644
--- a/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -809,13 +809,18 @@ public:
/// operation.
bool hasNUsesOfValue(unsigned NUses, unsigned Value) const;
- // isOnlyUse - Return true if this node is the only use of N.
+ /// isOnlyUse - Return true if this node is the only use of N.
+ ///
bool isOnlyUse(SDNode *N) const;
- // isOperand - Return true if this node is an operand of N.
+ /// 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.
+ /// isPredecessor - Return true if this node is a predecessor of N. This node
+ /// is either an operand of N or it can be reached by recursively traversing
+ /// up the operands.
+ /// NOTE: this is an expensive method. Use it carefully.
bool isPredecessor(SDNode *N) const;
/// getNumOperands - Return the number of values used by this operation.