LLVM  14.0.0git
Public Member Functions | List of all members
llvm::MCSubRegIndexIterator Class Reference

Iterator that enumerates the sub-registers of a Reg and the associated sub-register indices. More...

#include "llvm/MC/MCRegisterInfo.h"

Public Member Functions

 MCSubRegIndexIterator (MCRegister Reg, const MCRegisterInfo *MCRI)
 Constructs an iterator that traverses subregisters and their associated subregister indices. More...
 
MCRegister getSubReg () const
 Returns current sub-register. More...
 
unsigned getSubRegIndex () const
 Returns sub-register index of the current sub-register. More...
 
bool isValid () const
 Returns true if this iterator is not yet at the end. More...
 
void operator++ ()
 Moves to the next position. More...
 

Detailed Description

Iterator that enumerates the sub-registers of a Reg and the associated sub-register indices.

Definition at line 607 of file MCRegisterInfo.h.

Constructor & Destructor Documentation

◆ MCSubRegIndexIterator()

llvm::MCSubRegIndexIterator::MCSubRegIndexIterator ( MCRegister  Reg,
const MCRegisterInfo MCRI 
)
inline

Constructs an iterator that traverses subregisters and their associated subregister indices.

Definition at line 614 of file MCRegisterInfo.h.

References llvm::MCRegisterInfo::get(), Reg, and llvm::MCRegisterDesc::SubRegIndices.

Member Function Documentation

◆ getSubReg()

MCRegister llvm::MCSubRegIndexIterator::getSubReg ( ) const
inline

Returns current sub-register.

Definition at line 620 of file MCRegisterInfo.h.

◆ getSubRegIndex()

unsigned llvm::MCSubRegIndexIterator::getSubRegIndex ( ) const
inline

Returns sub-register index of the current sub-register.

Definition at line 625 of file MCRegisterInfo.h.

◆ isValid()

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

Returns true if this iterator is not yet at the end.

Definition at line 630 of file MCRegisterInfo.h.

References llvm::MCRegisterInfo::DiffListIterator::isValid().

◆ operator++()

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

Moves to the next position.

Definition at line 633 of file MCRegisterInfo.h.


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