LLVM 24.0.0git
llvm::SDUse Class Reference

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

Detailed Description

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 279 of file SelectionDAGNodes.h.

Constructor & Destructor Documentation

◆ SDUse() [1/2]

llvm::SDUse::SDUse ( )
default

Referenced by getNext(), operator=(), and SDUse().

◆ SDUse() [2/2]

llvm::SDUse::SDUse ( const SDUse & U)
delete

References SDUse().

Member Function Documentation

◆ get()

const SDValue & llvm::SDUse::get ( ) const
inline

If implicit conversion to SDValue doesn't work, the get() method returns the SDValue.

Definition at line 299 of file SelectionDAGNodes.h.

◆ getNext()

SDUse * llvm::SDUse::getNext ( ) const
inline

Get the next SDUse in the use list.

Definition at line 306 of file SelectionDAGNodes.h.

References SDUse().

◆ getNode()

SDNode * llvm::SDUse::getNode ( ) const
inline

Convenience function for get().getNode().

Definition at line 312 of file SelectionDAGNodes.h.

References SDNode.

Referenced by llvm::simplify_type< SDUse >::getSimplifiedValue().

◆ getOperandNo()

unsigned llvm::SDUse::getOperandNo ( ) const
inline

Return the operand # of this use in its user.

Definition at line 1361 of file SelectionDAGNodes.h.

References getUser(), and llvm::SDNode::op_begin().

◆ getResNo()

unsigned llvm::SDUse::getResNo ( ) const
inline

Convenience function for get().getResNo().

Definition at line 314 of file SelectionDAGNodes.h.

◆ getUser() [1/2]

◆ getUser() [2/2]

const SDNode * llvm::SDUse::getUser ( ) const
inline

Definition at line 303 of file SelectionDAGNodes.h.

References SDNode.

◆ getValueType()

EVT llvm::SDUse::getValueType ( ) const
inline

Convenience function for get().getValueType().

Definition at line 316 of file SelectionDAGNodes.h.

◆ operator const SDValue &()

llvm::SDUse::operator const SDValue & ( ) const
inline

Normally SDUse will just implicitly convert to an SDValue that it holds.

Definition at line 295 of file SelectionDAGNodes.h.

◆ operator!=()

bool llvm::SDUse::operator!= ( const SDValue & V) const
inline

Convenience function for get().operator!=.

Definition at line 324 of file SelectionDAGNodes.h.

◆ operator<()

bool llvm::SDUse::operator< ( const SDValue & V) const
inline

Convenience function for get().operator<.

Definition at line 329 of file SelectionDAGNodes.h.

◆ operator=()

SDUse & llvm::SDUse::operator= ( const SDUse & )
delete

References SDUse().

◆ operator==()

bool llvm::SDUse::operator== ( const SDValue & V) const
inline

Convenience function for get().operator==.

Definition at line 319 of file SelectionDAGNodes.h.

◆ HandleSDNode

friend class HandleSDNode
friend

Definition at line 337 of file SelectionDAGNodes.h.

References HandleSDNode, and SDNode.

Referenced by HandleSDNode.

◆ SDNode

friend class SDNode
friend

Definition at line 335 of file SelectionDAGNodes.h.

References SDNode.

Referenced by getNode(), getUser(), getUser(), HandleSDNode, and SDNode.

◆ SelectionDAG

friend class SelectionDAG
friend

Definition at line 334 of file SelectionDAGNodes.h.

References SelectionDAG.

Referenced by SelectionDAG.


The documentation for this class was generated from the following file: