LLVM 22.0.0git
llvm::sandboxir::UserUseIterator Class Reference

Iterator for the Use edges of a Value's users. More...

#include "llvm/SandboxIR/Value.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

 UserUseIterator ()=default
value_type operator* () const
LLVM_ABI UserUseIteratoroperator++ ()
bool operator== (const UserUseIterator &Other) const
bool operator!= (const UserUseIterator &Other) const
const sandboxir::UsegetUse () const

Friends

class Value

Detailed Description

Iterator for the Use edges of a Value's users.

\Returns a Use when dereferenced.

Definition at line 40 of file Value.h.

Member Typedef Documentation

◆ difference_type

Definition at line 47 of file Value.h.

◆ iterator_category

using llvm::sandboxir::UserUseIterator::iterator_category = std::input_iterator_tag

Definition at line 51 of file Value.h.

◆ pointer

Definition at line 49 of file Value.h.

◆ reference

Definition at line 50 of file Value.h.

◆ value_type

Constructor & Destructor Documentation

◆ UserUseIterator()

llvm::sandboxir::UserUseIterator::UserUseIterator ( )
default

Member Function Documentation

◆ getUse()

const sandboxir::Use & llvm::sandboxir::UserUseIterator::getUse ( ) const
inline

Definition at line 62 of file Value.h.

◆ operator!=()

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

Definition at line 59 of file Value.h.

References llvm::Other.

◆ operator*()

value_type llvm::sandboxir::UserUseIterator::operator* ( ) const
inline

Definition at line 54 of file Value.h.

◆ operator++()

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

Definition at line 23 of file User.cpp.

References assert(), and llvm::cast_or_null().

◆ operator==()

bool llvm::sandboxir::UserUseIterator::operator== ( const UserUseIterator & Other) const
inline

Definition at line 56 of file Value.h.

References llvm::Other.

◆ Value

friend class Value
friend

Definition at line 44 of file Value.h.

References Value.

Referenced by Value.


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