LLVM 20.0.0git
Public Types | Public Member Functions | Friends | List of all members
llvm::sandboxir::OperandUseIterator Class Reference

Iterator for the Use edges of a User's operands. More...

#include "llvm/SandboxIR/User.h"

Public Types

using difference_type = std::ptrdiff_t
 
using value_type = sandboxir::Use
 
using pointer = value_type *
 
using reference = value_type &
 
using iterator_category = std::input_iterator_tag
 

Public Member Functions

 OperandUseIterator ()=default
 
value_type operator* () const
 
OperandUseIteratoroperator++ ()
 
OperandUseIterator operator++ (int)
 
bool operator== (const OperandUseIterator &Other) const
 
bool operator!= (const OperandUseIterator &Other) const
 
OperandUseIterator operator+ (unsigned Num) const
 
OperandUseIterator operator- (unsigned Num) const
 
int operator- (const OperandUseIterator &Other) const
 

Friends

class User
 

Detailed Description

Iterator for the Use edges of a User's operands.

\Returns the operand Use when dereferenced.

Definition at line 23 of file User.h.

Member Typedef Documentation

◆ difference_type

Definition at line 32 of file User.h.

◆ iterator_category

Definition at line 36 of file User.h.

◆ pointer

Definition at line 34 of file User.h.

◆ reference

Definition at line 35 of file User.h.

◆ value_type

Definition at line 33 of file User.h.

Constructor & Destructor Documentation

◆ OperandUseIterator()

llvm::sandboxir::OperandUseIterator::OperandUseIterator ( )
default

Referenced by operator+(), and operator-().

Member Function Documentation

◆ operator!=()

bool llvm::sandboxir::OperandUseIterator::operator!= ( const OperandUseIterator Other) const
inline

Definition at line 49 of file User.h.

References llvm::Other.

◆ operator*()

Use llvm::sandboxir::OperandUseIterator::operator* ( ) const

Definition at line 14 of file User.cpp.

◆ operator+()

OperandUseIterator llvm::sandboxir::OperandUseIterator::operator+ ( unsigned  Num) const

◆ operator++() [1/2]

OperandUseIterator & llvm::sandboxir::OperandUseIterator::operator++ ( )

◆ operator++() [2/2]

OperandUseIterator llvm::sandboxir::OperandUseIterator::operator++ ( int  )
inline

Definition at line 41 of file User.h.

References operator++().

◆ operator-() [1/2]

int llvm::sandboxir::OperandUseIterator::operator- ( const OperandUseIterator Other) const

Definition at line 52 of file User.cpp.

References llvm::sandboxir::Use::getOperandNo(), and llvm::Other.

◆ operator-() [2/2]

OperandUseIterator llvm::sandboxir::OperandUseIterator::operator- ( unsigned  Num) const

◆ operator==()

bool llvm::sandboxir::OperandUseIterator::operator== ( const OperandUseIterator Other) const
inline

Definition at line 46 of file User.h.

References llvm::Other.

Friends And Related Function Documentation

◆ User

friend class User
friend

Definition at line 27 of file User.h.


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