LLVM 20.0.0git
|
This class encapuslates the logic to iterate over bitmask returned by the various RegClass related APIs. More...
#include "llvm/CodeGen/TargetRegisterInfo.h"
Public Member Functions | |
BitMaskClassIterator (const uint32_t *Mask, const TargetRegisterInfo &TRI) | |
Create a BitMaskClassIterator that visits all the register classes represented by Mask . | |
bool | isValid () const |
Returns true if this iterator is still pointing at a valid entry. | |
unsigned | getID () const |
Returns the current register class ID. | |
void | operator++ () |
Advance iterator to the next entry. | |
This class encapuslates the logic to iterate over bitmask returned by the various RegClass related APIs.
E.g., this class can be used to iterate over the subclasses provided by TargetRegisterClass::getSubClassMask or SuperRegClassIterator::getMask.
Definition at line 1286 of file TargetRegisterInfo.h.
|
inline |
Create a BitMaskClassIterator that visits all the register classes represented by Mask
.
Mask
!= nullptr Definition at line 1350 of file TargetRegisterInfo.h.
|
inline |
Returns the current register class ID.
Definition at line 1360 of file TargetRegisterInfo.h.
Referenced by isValid().
|
inline |
Returns true if this iterator is still pointing at a valid entry.
Definition at line 1357 of file TargetRegisterInfo.h.
References getID().
Referenced by llvm::TargetRegisterInfo::getAllocatableClass(), and operator++().
|
inline |
Advance iterator to the next entry.
Definition at line 1363 of file TargetRegisterInfo.h.