LLVM 20.0.0git
|
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 |
OperandUseIterator & | operator++ () |
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 |
using llvm::sandboxir::OperandUseIterator::difference_type = std::ptrdiff_t |
using llvm::sandboxir::OperandUseIterator::iterator_category = std::input_iterator_tag |
|
default |
Referenced by operator+(), and operator-().
|
inline |
Definition at line 49 of file User.h.
References llvm::Other.
Use llvm::sandboxir::OperandUseIterator::operator* | ( | ) | const |
OperandUseIterator llvm::sandboxir::OperandUseIterator::operator+ | ( | unsigned | Num | ) | const |
Definition at line 39 of file User.cpp.
References llvm::sandboxir::Use::getOperandNo(), llvm::sandboxir::User::getOperandUseInternal(), llvm::sandboxir::Use::getUser(), and OperandUseIterator().
OperandUseIterator & llvm::sandboxir::OperandUseIterator::operator++ | ( | ) |
Definition at line 16 of file User.cpp.
References assert(), llvm::sandboxir::Use::getOperandNo(), llvm::sandboxir::User::getOperandUseInternal(), and llvm::sandboxir::Use::getUser().
Referenced by operator++().
|
inline |
Definition at line 41 of file User.h.
References operator++().
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.
OperandUseIterator llvm::sandboxir::OperandUseIterator::operator- | ( | unsigned | Num | ) | const |
Definition at line 45 of file User.cpp.
References assert(), llvm::sandboxir::Use::getOperandNo(), llvm::sandboxir::User::getOperandUseInternal(), llvm::sandboxir::Use::getUser(), and OperandUseIterator().
|
inline |
Definition at line 46 of file User.h.
References llvm::Other.