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/SandboxIR.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 142 of file SandboxIR.h.

Member Typedef Documentation

◆ difference_type

Definition at line 151 of file SandboxIR.h.

◆ iterator_category

Definition at line 155 of file SandboxIR.h.

◆ pointer

Definition at line 153 of file SandboxIR.h.

◆ reference

Definition at line 154 of file SandboxIR.h.

◆ value_type

Definition at line 152 of file SandboxIR.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 168 of file SandboxIR.h.

References llvm::Other.

◆ operator*()

Use OperandUseIterator::operator* ( ) const

Definition at line 64 of file SandboxIR.cpp.

◆ operator+()

OperandUseIterator OperandUseIterator::operator+ ( unsigned  Num) const

◆ operator++() [1/2]

OperandUseIterator & OperandUseIterator::operator++ ( )

◆ operator++() [2/2]

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

Definition at line 160 of file SandboxIR.h.

References operator++().

◆ operator-() [1/2]

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

Definition at line 102 of file SandboxIR.cpp.

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

◆ operator-() [2/2]

OperandUseIterator OperandUseIterator::operator- ( unsigned  Num) const

◆ operator==()

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

Definition at line 165 of file SandboxIR.h.

References llvm::Other.

Friends And Related Function Documentation

◆ User

friend class User
friend

Definition at line 146 of file SandboxIR.h.


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