LLVM 20.0.0git
Public Types | Public Member Functions | Friends | List of all members
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
 
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 37 of file Value.h.

Member Typedef Documentation

◆ difference_type

Definition at line 44 of file Value.h.

◆ iterator_category

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

Definition at line 48 of file Value.h.

◆ pointer

Definition at line 46 of file Value.h.

◆ reference

Definition at line 47 of file Value.h.

◆ value_type

Definition at line 45 of file Value.h.

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 59 of file Value.h.

◆ operator!=()

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

Definition at line 56 of file Value.h.

References llvm::Other.

◆ operator*()

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

Definition at line 51 of file Value.h.

◆ operator++()

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

Definition at line 23 of file User.cpp.

References assert().

◆ operator==()

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

Definition at line 53 of file Value.h.

References llvm::Other.

Friends And Related Function Documentation

◆ Value

friend class Value
friend

Definition at line 41 of file Value.h.


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