[llvm-commits] CVS: llvm/include/llvm/CodeGen/SelectionDAGNodes.h

Evan Cheng evan.cheng at apple.com
Thu Mar 2 22:25:07 PST 2006



Changes in directory llvm/include/llvm/CodeGen:

SelectionDAGNodes.h updated: 1.106 -> 1.107
---
Log message:

Added isOperand(N): true if this is an operand of N

---
Diffs of the changes:  (+7 -0)

 SelectionDAGNodes.h |    7 +++++++
 1 files changed, 7 insertions(+)


Index: llvm/include/llvm/CodeGen/SelectionDAGNodes.h
diff -u llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.106 llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.107
--- llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.106	Thu Mar  2 18:18:00 2006
+++ llvm/include/llvm/CodeGen/SelectionDAGNodes.h	Fri Mar  3 00:24:54 2006
@@ -542,6 +542,7 @@
   inline const SDOperand &getOperand(unsigned i) const;
   inline bool isTargetOpcode() const;
   inline unsigned getTargetOpcode() const;
+  inline const bool isOperand(SDNode *N) const;
 
   /// hasOneUse - Return true if there is exactly one operation using this
   /// result value of the defining operator.
@@ -631,6 +632,9 @@
   // 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.
+  bool isOperand(SDNode *N) const;
+
   /// getNumOperands - Return the number of values used by this operation.
   ///
   unsigned getNumOperands() const { return NumOperands; }
@@ -937,6 +941,9 @@
 inline unsigned SDOperand::getTargetOpcode() const {
   return Val->getTargetOpcode();
 }
+inline const bool SDOperand::isOperand(SDNode *N) const {
+  return Val->isOperand(N);
+}
 inline bool SDOperand::hasOneUse() const {
   return Val->hasNUsesOfValue(1, ResNo);
 }






More information about the llvm-commits mailing list