LLVM  4.0.0
Public Member Functions | Friends | List of all members
llvm::SDUse Class Reference

Represents a use of a SDNode. More...

#include <SelectionDAGNodes.h>

Public Member Functions

 SDUse ()
 
 operator const SDValue & () const
 Normally SDUse will just implicitly convert to an SDValue that it holds. More...
 
const SDValueget () const
 If implicit conversion to SDValue doesn't work, the get() method returns the SDValue. More...
 
SDNodegetUser ()
 This returns the SDNode that contains this Use. More...
 
SDUsegetNext () const
 Get the next SDUse in the use list. More...
 
SDNodegetNode () const
 Convenience function for get().getNode(). More...
 
unsigned getResNo () const
 Convenience function for get().getResNo(). More...
 
EVT getValueType () const
 Convenience function for get().getValueType(). More...
 
bool operator== (const SDValue &V) const
 Convenience function for get().operator==. More...
 
bool operator!= (const SDValue &V) const
 Convenience function for get().operator!=. More...
 
bool operator< (const SDValue &V) const
 Convenience function for get().operator<. More...
 

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

Constructor & Destructor Documentation

llvm::SDUse::SDUse ( )
inline

Definition at line 262 of file SelectionDAGNodes.h.

Member Function Documentation

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

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

Definition at line 269 of file SelectionDAGNodes.h.

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

Get the next SDUse in the use list.

Definition at line 275 of file SelectionDAGNodes.h.

SDNode* llvm::SDUse::getNode ( ) const
inline
unsigned llvm::SDUse::getResNo ( ) const
inline
SDNode* llvm::SDUse::getUser ( )
inline

This returns the SDNode that contains this Use.

Definition at line 272 of file SelectionDAGNodes.h.

Referenced by ExtendUsesToFormExtLoad(), and findGlueUse().

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

Convenience function for get().getValueType().

Definition at line 282 of file SelectionDAGNodes.h.

References llvm::SDValue::getValueType().

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

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

Definition at line 265 of file SelectionDAGNodes.h.

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

Convenience function for get().operator!=.

Definition at line 290 of file SelectionDAGNodes.h.

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

Convenience function for get().operator<.

Definition at line 295 of file SelectionDAGNodes.h.

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

Convenience function for get().operator==.

Definition at line 285 of file SelectionDAGNodes.h.

Friends And Related Function Documentation

friend class HandleSDNode
friend

Definition at line 303 of file SelectionDAGNodes.h.

friend class SDNode
friend

Definition at line 301 of file SelectionDAGNodes.h.

friend class SelectionDAG
friend

Definition at line 300 of file SelectionDAGNodes.h.


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