LLVM 20.0.0git
|
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 |
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 |
Iterator for the Use
edges of a User's operands.
\Returns the operand Use
when dereferenced.
Definition at line 137 of file SandboxIR.h.
using llvm::sandboxir::OperandUseIterator::difference_type = std::ptrdiff_t |
Definition at line 146 of file SandboxIR.h.
using llvm::sandboxir::OperandUseIterator::iterator_category = std::input_iterator_tag |
Definition at line 150 of file SandboxIR.h.
Definition at line 148 of file SandboxIR.h.
Definition at line 149 of file SandboxIR.h.
Definition at line 147 of file SandboxIR.h.
|
default |
Referenced by operator+(), and operator-().
|
inline |
Definition at line 163 of file SandboxIR.h.
References llvm::Other.
Use OperandUseIterator::operator* | ( | ) | const |
Definition at line 64 of file SandboxIR.cpp.
OperandUseIterator OperandUseIterator::operator+ | ( | unsigned | Num | ) | const |
Definition at line 89 of file SandboxIR.cpp.
References llvm::sandboxir::Use::getOperandNo(), llvm::sandboxir::User::getOperandUseInternal(), llvm::sandboxir::Use::getUser(), and OperandUseIterator().
OperandUseIterator & OperandUseIterator::operator++ | ( | ) |
Definition at line 66 of file SandboxIR.cpp.
References assert(), llvm::sandboxir::Use::getOperandNo(), llvm::sandboxir::User::getOperandUseInternal(), and llvm::sandboxir::Use::getUser().
Referenced by operator++().
|
inline |
Definition at line 155 of file SandboxIR.h.
References operator++().
int OperandUseIterator::operator- | ( | const OperandUseIterator & | Other | ) | const |
Definition at line 102 of file SandboxIR.cpp.
References llvm::sandboxir::Use::getOperandNo(), and llvm::Other.
OperandUseIterator OperandUseIterator::operator- | ( | unsigned | Num | ) | const |
Definition at line 95 of file SandboxIR.cpp.
References assert(), llvm::sandboxir::Use::getOperandNo(), llvm::sandboxir::User::getOperandUseInternal(), llvm::sandboxir::Use::getUser(), and OperandUseIterator().
|
inline |
Definition at line 160 of file SandboxIR.h.
References llvm::Other.
|
friend |
Definition at line 141 of file SandboxIR.h.