LLVM 20.0.0git
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"

Public Types

using iterator_category = std::forward_iterator_tag
 
using value_type = SDUse
 
using difference_type = std::ptrdiff_t
 
using pointer = value_type *
 
using reference = value_type &
 

Public Member Functions

 use_iterator ()=default
 
 use_iterator (const use_iterator &I)=default
 
use_iteratoroperator= (const use_iterator &)=default
 
bool operator== (const use_iterator &x) const
 
bool operator!= (const use_iterator &x) const
 
use_iteratoroperator++ ()
 
use_iterator operator++ (int)
 
SDUseoperator* () const
 Retrieve a pointer to the current user node.
 
SDUseoperator-> () const
 

Friends

class SDNode
 

Detailed Description

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

Definition at line 789 of file SelectionDAGNodes.h.

Member Typedef Documentation

◆ difference_type

Definition at line 799 of file SelectionDAGNodes.h.

◆ iterator_category

using llvm::SDNode::use_iterator::iterator_category = std::forward_iterator_tag

Definition at line 797 of file SelectionDAGNodes.h.

◆ pointer

Definition at line 800 of file SelectionDAGNodes.h.

◆ reference

Definition at line 801 of file SelectionDAGNodes.h.

◆ value_type

Definition at line 798 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)
default

Member Function Documentation

◆ operator!=()

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

Definition at line 808 of file SelectionDAGNodes.h.

References operator==().

◆ operator*()

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

Retrieve a pointer to the current user node.

Definition at line 824 of file SelectionDAGNodes.h.

References assert().

Referenced by operator->().

◆ operator++() [1/2]

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

Definition at line 813 of file SelectionDAGNodes.h.

References assert().

◆ operator++() [2/2]

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

Definition at line 819 of file SelectionDAGNodes.h.

◆ operator->()

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

Definition at line 829 of file SelectionDAGNodes.h.

References operator*().

◆ operator=()

use_iterator & llvm::SDNode::use_iterator::operator= ( const use_iterator )
default

◆ operator==()

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

Definition at line 807 of file SelectionDAGNodes.h.

Referenced by operator!=().

Friends And Related Function Documentation

◆ SDNode

friend class SDNode
friend

Definition at line 790 of file SelectionDAGNodes.h.


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