LLVM 20.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 283 of file SelectionDAGNodes.h.
|
default |
If implicit conversion to SDValue doesn't work, the get() method returns the SDValue.
Definition at line 303 of file SelectionDAGNodes.h.
|
inline |
Get the next SDUse in the use list.
Definition at line 310 of file SelectionDAGNodes.h.
|
inline |
Convenience function for get().getNode().
Definition at line 316 of file SelectionDAGNodes.h.
References llvm::SDValue::getNode().
Referenced by llvm::simplify_type< SDUse >::getSimplifiedValue().
|
inline |
Return the operand # of this use in its user.
Definition at line 1282 of file SelectionDAGNodes.h.
References getUser(), and llvm::SDNode::op_begin().
|
inline |
Convenience function for get().getResNo().
Definition at line 318 of file SelectionDAGNodes.h.
References llvm::SDValue::getResNo().
|
inline |
This returns the SDNode that contains this Use.
Definition at line 306 of file SelectionDAGNodes.h.
Referenced by getOperandNo(), llvm::SDNode::user_iterator::operator*(), llvm::SelectionDAG::ReplaceAllUsesOfValueWith(), and llvm::SelectionDAG::ReplaceAllUsesWith().
Definition at line 307 of file SelectionDAGNodes.h.
|
inline |
Convenience function for get().getValueType().
Definition at line 320 of file SelectionDAGNodes.h.
References llvm::SDValue::getValueType().
Normally SDUse will just implicitly convert to an SDValue that it holds.
Definition at line 299 of file SelectionDAGNodes.h.
Convenience function for get().operator!=.
Definition at line 328 of file SelectionDAGNodes.h.
Convenience function for get().operator<.
Definition at line 333 of file SelectionDAGNodes.h.
Convenience function for get().operator==.
Definition at line 323 of file SelectionDAGNodes.h.
|
friend |
Definition at line 341 of file SelectionDAGNodes.h.
|
friend |
Definition at line 339 of file SelectionDAGNodes.h.
|
friend |
Definition at line 338 of file SelectionDAGNodes.h.