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/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

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

Member Typedef Documentation

◆ difference_type

Definition at line 180 of file SandboxIR.h.

◆ iterator_category

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

Definition at line 184 of file SandboxIR.h.

◆ pointer

Definition at line 182 of file SandboxIR.h.

◆ reference

Definition at line 183 of file SandboxIR.h.

◆ value_type

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

◆ operator!=()

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

Definition at line 192 of file SandboxIR.h.

References llvm::Other.

◆ operator*()

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

Definition at line 187 of file SandboxIR.h.

◆ operator++()

UserUseIterator & UserUseIterator::operator++ ( )

Definition at line 73 of file SandboxIR.cpp.

References assert().

◆ operator==()

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

Definition at line 189 of file SandboxIR.h.

References llvm::Other.

Friends And Related Function Documentation

◆ Value

friend class Value
friend

Definition at line 177 of file SandboxIR.h.


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