Skip to content

Commit 2737d01

Browse files
authored
[SelectionDAG] Improve the doxygen description for SDValue::isOperandOf. NFC (#151244)
SDValue::isOperandOf checks the result number in addition to the SDNode*. SDNode::isOperandOf only checks the SDNode*.
1 parent 37e03b5 commit 2737d01

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/include/llvm/CodeGen/SelectionDAGNodes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ class SDValue {
182182
return SDValue(Node, R);
183183
}
184184

185-
/// Return true if this node is an operand of N.
185+
/// Return true if the referenced return value is an operand of N.
186186
LLVM_ABI bool isOperandOf(const SDNode *N) const;
187187

188188
/// Return the ValueType of the referenced return value.

llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12782,7 +12782,7 @@ bool SDNode::areOnlyUsersOf(ArrayRef<const SDNode *> Nodes, const SDNode *N) {
1278212782
return Seen;
1278312783
}
1278412784

12785-
/// isOperand - Return true if this node is an operand of N.
12785+
/// Return true if the referenced return value is an operand of N.
1278612786
bool SDValue::isOperandOf(const SDNode *N) const {
1278712787
return is_contained(N->op_values(), *this);
1278812788
}

0 commit comments

Comments
 (0)