LLVM  6.0.0svn
Public Types | Public Member Functions | Friends | List of all members
llvm::SDNode::use_iterator Class Reference

This class provides iterator support for SDUse operands that use a specific SDNode. More...

#include "llvm/CodeGen/SelectionDAGNodes.h"

Inheritance diagram for llvm::SDNode::use_iterator:
Inheritance graph
[legend]
Collaboration diagram for llvm::SDNode::use_iterator:
Collaboration graph
[legend]

Public Types

using reference = std::iterator< std::forward_iterator_tag, SDUse, ptrdiff_t >::reference
 
using pointer = std::iterator< std::forward_iterator_tag, SDUse, ptrdiff_t >::pointer
 

Public Member Functions

 use_iterator ()=default
 
 use_iterator (const use_iterator &I)
 
bool operator== (const use_iterator &x) const
 
bool operator!= (const use_iterator &x) const
 
bool atEnd () const
 Return true if this iterator is at the end of uses list. More...
 
use_iteratoroperator++ ()
 
use_iterator operator++ (int)
 
SDNodeoperator* () const
 Retrieve a pointer to the current user node. More...
 
SDNodeoperator-> () const
 
SDUsegetUse () const
 
unsigned getOperandNo () const
 Retrieve the operand # of this use in its user. More...
 

Friends

class SDNode
 

Detailed Description

This class provides iterator support for SDUse operands that use a specific SDNode.

Definition at line 698 of file SelectionDAGNodes.h.

Member Typedef Documentation

◆ pointer

using llvm::SDNode::use_iterator::pointer = std::iterator<std::forward_iterator_tag, SDUse, ptrdiff_t>::pointer

Definition at line 710 of file SelectionDAGNodes.h.

◆ reference

using llvm::SDNode::use_iterator::reference = std::iterator<std::forward_iterator_tag, SDUse, ptrdiff_t>::reference

Definition at line 708 of file SelectionDAGNodes.h.

Constructor & Destructor Documentation

◆ use_iterator() [1/2]

llvm::SDNode::use_iterator::use_iterator ( )
default

◆ use_iterator() [2/2]

llvm::SDNode::use_iterator::use_iterator ( const use_iterator I)
inline

Definition at line 713 of file SelectionDAGNodes.h.

Member Function Documentation

◆ atEnd()

bool llvm::SDNode::use_iterator::atEnd ( ) const
inline

Return true if this iterator is at the end of uses list.

Definition at line 723 of file SelectionDAGNodes.h.

◆ getOperandNo()

unsigned llvm::SDNode::use_iterator::getOperandNo ( ) const
inline

Retrieve the operand # of this use in its user.

Definition at line 747 of file SelectionDAGNodes.h.

References assert(), and llvm::SDUse::getUser().

Referenced by hasNonFlagsUse().

◆ getUse()

SDUse& llvm::SDNode::use_iterator::getUse ( ) const
inline

◆ operator!=()

bool llvm::SDNode::use_iterator::operator!= ( const use_iterator x) const
inline

Definition at line 718 of file SelectionDAGNodes.h.

References llvm::operator==().

◆ operator*()

SDNode* llvm::SDNode::use_iterator::operator* ( ) const
inline

Retrieve a pointer to the current user node.

Definition at line 737 of file SelectionDAGNodes.h.

References assert(), and llvm::SDUse::getUser().

◆ operator++() [1/2]

use_iterator& llvm::SDNode::use_iterator::operator++ ( )
inline

Definition at line 726 of file SelectionDAGNodes.h.

References assert(), and llvm::SDUse::getNext().

◆ operator++() [2/2]

use_iterator llvm::SDNode::use_iterator::operator++ ( int  )
inline

Definition at line 732 of file SelectionDAGNodes.h.

◆ operator->()

SDNode* llvm::SDNode::use_iterator::operator-> ( ) const
inline

Definition at line 742 of file SelectionDAGNodes.h.

References llvm::operator*().

◆ operator==()

bool llvm::SDNode::use_iterator::operator== ( const use_iterator x) const
inline

Definition at line 715 of file SelectionDAGNodes.h.

Friends And Related Function Documentation

◆ SDNode

friend class SDNode
friend

Definition at line 700 of file SelectionDAGNodes.h.


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