[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Evan Cheng
evan.cheng at apple.com
Thu Mar 2 22:25:07 PST 2006
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAG.cpp updated: 1.263 -> 1.264
---
Log message:
Added isOperand(N): true if this is an operand of N
---
Diffs of the changes: (+7 -0)
SelectionDAG.cpp | 7 +++++++
1 files changed, 7 insertions(+)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.263 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.264
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.263 Thu Mar 2 18:19:44 2006
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Fri Mar 3 00:24:54 2006
@@ -2533,6 +2533,13 @@
return Seen;
}
+// isOperand - Return true if this node is an operand of N.
+bool SDNode::isOperand(SDNode *N) const {
+ for (unsigned i = 0, e = N->NumOperands; i != e; ++i)
+ if (this == N->OperandList[i].Val)
+ return true;
+ return false;
+}
const char *SDNode::getOperationName(const SelectionDAG *G) const {
switch (getOpcode()) {
More information about the llvm-commits
mailing list