LLVM 20.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.
 
MCRegister getSubReg () const
 Returns current sub-register.
 
unsigned getSubRegIndex () const
 Returns sub-register index of the current sub-register.
 
bool isValid () const
 Returns true if this iterator is not yet at the end.
 
MCSubRegIndexIteratoroperator++ ()
 Moves to the next position.
 

Detailed Description

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

Definition at line 555 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 562 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 568 of file MCRegisterInfo.h.

Referenced by llvm::rdf::Liveness::resetKills().

◆ getSubRegIndex()

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

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

Definition at line 573 of file MCRegisterInfo.h.

Referenced by llvm::rdf::Liveness::resetKills().

◆ isValid()

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

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

Definition at line 578 of file MCRegisterInfo.h.

References llvm::MCSubRegIterator::isValid().

Referenced by llvm::rdf::Liveness::resetKills(), and llvm::rdf::CopyPropagation::run().

◆ operator++()

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

Moves to the next position.

Definition at line 581 of file MCRegisterInfo.h.


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