LLVM 17.0.0git
|
DiffListIterator - Base iterator class that can traverse the differentially encoded register and regunit lists in DiffLists. More...
#include "llvm/MC/MCRegisterInfo.h"
Public Member Functions | |
bool | isValid () const |
isValid - returns true if this iterator is not yet at the end. | |
MCRegister | operator* () const |
Dereference the iterator to get the value at the current position. | |
void | operator++ () |
Pre-increment to move to the next position. | |
Protected Member Functions | |
DiffListIterator ()=default | |
Create an invalid iterator. Call init() to point to something useful. | |
void | init (unsigned InitVal, const int16_t *DiffList) |
Point the iterator to InitVal, decoding subsequent values from DiffList. | |
Friends | |
template<class SubT > | |
class | MCRegisterInfo::mc_difflist_iterator |
DiffListIterator - Base iterator class that can traverse the differentially encoded register and regunit lists in DiffLists.
Don't use this class directly, use one of the specialized sub-classes defined below.
Definition at line 196 of file MCRegisterInfo.h.
|
protecteddefault |
Create an invalid iterator. Call init() to point to something useful.
|
inlineprotected |
Point the iterator to InitVal, decoding subsequent values from DiffList.
Definition at line 205 of file MCRegisterInfo.h.
References List.
Referenced by llvm::MCRegisterInfo::mc_difflist_iterator< SubT >::init(), llvm::MCRegUnitIterator::MCRegUnitIterator(), llvm::MCSubRegIterator::MCSubRegIterator(), and llvm::MCSuperRegIterator::MCSuperRegIterator().
|
inline |
isValid - returns true if this iterator is not yet at the end.
Definition at line 212 of file MCRegisterInfo.h.
References List.
Referenced by addRegUnits(), llvm::MCRegAliasIterator::advance(), llvm::RegAllocEvictionAdvisor::canReassign(), llvm::LiveRegMatrix::checkInterference(), computeLiveOuts(), llvm::SIRegisterInfo::findReachingDef(), llvm::SystemZInstrInfo::foldMemoryOperandImpl(), foreachUnit(), llvm::TargetRegisterInfo::hasRegUnit(), INITIALIZE_PASS(), interpretValues(), isDefBetween(), llvm::MCSubRegIndexIterator::isValid(), llvm::MCRegUnitMaskIterator::isValid(), llvm::MCRegAliasIterator::isValid(), llvm::MCRegAliasIterator::MCRegAliasIterator(), operator++(), llvm::LiveIntervals::removeAllRegUnitsForPhysReg(), llvm::LiveIntervals::HMEditor::updateAllRanges(), updatePhysDepsDownwards(), and updatePhysDepsUpwards().
|
inline |
Dereference the iterator to get the value at the current position.
Definition at line 215 of file MCRegisterInfo.h.
|
inline |
Pre-increment to move to the next position.
Definition at line 218 of file MCRegisterInfo.h.
References assert(), D, isValid(), and List.
Referenced by llvm::MCRegUnitIterator::operator++().
|
friend |
Definition at line 227 of file MCRegisterInfo.h.