aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/SelectionDAGNodes.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-02-05 06:29:23 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-02-05 06:29:23 +0000
commit4ee621125876cc954cba5280dd9395552755a871 (patch)
tree2fcdf9127e7ef02c3d6c2d13e863bc8fe2fba3ec /include/llvm/CodeGen/SelectionDAGNodes.h
parent35409221bc8c170c71041594927aaf2b2a6d4832 (diff)
* Added SDNode::isOnlyUse().
* Fix hasNUsesOfValue(), it should be const. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25990 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SelectionDAGNodes.h')
-rw-r--r--include/llvm/CodeGen/SelectionDAGNodes.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h
index 0b850e617b..1e8f8d8f2d 100644
--- a/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -619,7 +619,10 @@ public:
/// hasNUsesOfValue - Return true if there are exactly NUSES uses of the
/// indicated value. This method ignores uses of other values defined by this
/// operation.
- bool hasNUsesOfValue(unsigned NUses, unsigned Value);
+ bool hasNUsesOfValue(unsigned NUses, unsigned Value) const;
+
+ // isOnlyUse - Return true if this node is the only use of N.
+ bool isOnlyUse(SDNode *N) const;
/// getNumOperands - Return the number of values used by this operation.
///