LLVM  6.0.0svn
Public Member Functions | List of all members
llvm::BitMaskClassIterator Class Reference

This class encapuslates the logic to iterate over bitmask returned by the various RegClass related APIs. More...

#include "llvm/Target/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. More...
 
bool isValid () const
 Returns true if this iterator is still pointing at a valid entry. More...
 
unsigned getID () const
 Returns the current register class ID. More...
 
void operator++ ()
 Advance iterator to the next entry. More...
 

Detailed Description

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 1045 of file TargetRegisterInfo.h.

Constructor & Destructor Documentation

◆ BitMaskClassIterator()

llvm::BitMaskClassIterator::BitMaskClassIterator ( const uint32_t Mask,
const TargetRegisterInfo TRI 
)
inline

Create a BitMaskClassIterator that visits all the register classes represented by Mask.

Precondition
Mask != nullptr

Definition at line 1109 of file TargetRegisterInfo.h.

Member Function Documentation

◆ getID()

unsigned llvm::BitMaskClassIterator::getID ( ) const
inline

Returns the current register class ID.

Definition at line 1119 of file TargetRegisterInfo.h.

◆ isValid()

bool llvm::BitMaskClassIterator::isValid ( ) const
inline

Returns true if this iterator is still pointing at a valid entry.

Definition at line 1116 of file TargetRegisterInfo.h.

References llvm::TargetRegisterClass::getID().

Referenced by llvm::TargetRegisterInfo::getAllocatableClass().

◆ operator++()

void llvm::BitMaskClassIterator::operator++ ( )
inline

Advance iterator to the next entry.

Definition at line 1122 of file TargetRegisterInfo.h.

References assert().


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