|
LLVM 23.0.0git
|
Represents a use of a SDNode. More...
#include "llvm/CodeGen/SelectionDAGNodes.h"
Public Member Functions | |
| SDUse ()=default | |
| SDUse (const SDUse &U)=delete | |
| SDUse & | operator= (const SDUse &)=delete |
| operator const SDValue & () const | |
| Normally SDUse will just implicitly convert to an SDValue that it holds. | |
| const SDValue & | get () const |
| If implicit conversion to SDValue doesn't work, the get() method returns the SDValue. | |
| SDNode * | getUser () |
| This returns the SDNode that contains this Use. | |
| const SDNode * | getUser () const |
| SDUse * | getNext () const |
| Get the next SDUse in the use list. | |
| unsigned | getOperandNo () const |
| Return the operand # of this use in its user. | |
| SDNode * | getNode () const |
| Convenience function for get().getNode(). | |
| unsigned | getResNo () const |
| Convenience function for get().getResNo(). | |
| EVT | getValueType () const |
| Convenience function for get().getValueType(). | |
| bool | operator== (const SDValue &V) const |
| Convenience function for get().operator==. | |
| bool | operator!= (const SDValue &V) const |
| Convenience function for get().operator!=. | |
| bool | operator< (const SDValue &V) const |
| Convenience function for get().operator<. | |
Friends | |
| class | SelectionDAG |
| class | SDNode |
| class | HandleSDNode |
Represents a use of a SDNode.
This class holds an SDValue, which records the SDNode being used and the result number, a pointer to the SDNode using the value, and Next and Prev pointers, which link together all the uses of an SDNode.
Definition at line 274 of file SelectionDAGNodes.h.
|
default |
Referenced by getNext(), operator=(), and SDUse().
If implicit conversion to SDValue doesn't work, the get() method returns the SDValue.
Definition at line 294 of file SelectionDAGNodes.h.
|
inline |
Get the next SDUse in the use list.
Definition at line 301 of file SelectionDAGNodes.h.
References SDUse().
|
inline |
Convenience function for get().getNode().
Definition at line 307 of file SelectionDAGNodes.h.
References SDNode.
Referenced by llvm::simplify_type< SDUse >::getSimplifiedValue().
|
inline |
Return the operand # of this use in its user.
Definition at line 1342 of file SelectionDAGNodes.h.
References getUser(), and llvm::SDNode::op_begin().
|
inline |
Convenience function for get().getResNo().
Definition at line 309 of file SelectionDAGNodes.h.
|
inline |
This returns the SDNode that contains this Use.
Definition at line 297 of file SelectionDAGNodes.h.
References SDNode.
Referenced by getOperandNo(), llvm::SelectionDAG::ReplaceAllUsesOfValueWith(), llvm::SelectionDAG::ReplaceAllUsesWith(), llvm::SelectionDAG::ReplaceAllUsesWith(), and llvm::SelectionDAG::ReplaceAllUsesWith().
Definition at line 298 of file SelectionDAGNodes.h.
References SDNode.
|
inline |
Convenience function for get().getValueType().
Definition at line 311 of file SelectionDAGNodes.h.
Normally SDUse will just implicitly convert to an SDValue that it holds.
Definition at line 290 of file SelectionDAGNodes.h.
Convenience function for get().operator!=.
Definition at line 319 of file SelectionDAGNodes.h.
Convenience function for get().operator<.
Definition at line 324 of file SelectionDAGNodes.h.
Convenience function for get().operator==.
Definition at line 314 of file SelectionDAGNodes.h.
|
friend |
Definition at line 332 of file SelectionDAGNodes.h.
References HandleSDNode, and SDNode.
Referenced by HandleSDNode.
|
friend |
Definition at line 330 of file SelectionDAGNodes.h.
References SDNode.
Referenced by getNode(), getUser(), getUser(), HandleSDNode, and SDNode.
|
friend |
Definition at line 329 of file SelectionDAGNodes.h.
References SelectionDAG.
Referenced by SelectionDAG.