New method.
authorChris Lattner <sabre@nondot.org>
Wed, 12 Jan 2005 18:37:33 +0000 (18:37 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 12 Jan 2005 18:37:33 +0000 (18:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19516 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAGNodes.h

index 8bbfb2b509846e079a35c18a610c70ede83ff677..2ca6e1509c5617368eaa344dc6066038b7079489 100644 (file)
@@ -353,6 +353,11 @@ public:
   bool use_empty() const { return Uses.empty(); }
   bool hasOneUse() const { return Uses.size() == 1; }
 
+  /// 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);
+
   /// getNumOperands - Return the number of values used by this operation.
   ///
   unsigned getNumOperands() const { return Operands.size(); }