LLVM 22.0.0git
llvm::MCRegUnitRootIterator Class Reference

MCRegUnitRootIterator enumerates the root registers of a register unit. More...

#include "llvm/MC/MCRegisterInfo.h"

Public Member Functions

 MCRegUnitRootIterator ()=default
 MCRegUnitRootIterator (MCRegUnit RegUnit, const MCRegisterInfo *MCRI)
unsigned operator* () const
 Dereference to get the current root register.
bool isValid () const
 Check if the iterator is at the end of the list.
MCRegUnitRootIteratoroperator++ ()
 Preincrement to move to the next root register.

Detailed Description

MCRegUnitRootIterator enumerates the root registers of a register unit.

Definition at line 719 of file MCRegisterInfo.h.

Constructor & Destructor Documentation

◆ MCRegUnitRootIterator() [1/2]

llvm::MCRegUnitRootIterator::MCRegUnitRootIterator ( )
default

Referenced by operator++().

◆ MCRegUnitRootIterator() [2/2]

llvm::MCRegUnitRootIterator::MCRegUnitRootIterator ( MCRegUnit RegUnit,
const MCRegisterInfo * MCRI )
inline

Definition at line 726 of file MCRegisterInfo.h.

References assert(), and llvm::MCRegisterInfo::getNumRegUnits().

Member Function Documentation

◆ isValid()

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

◆ operator*()

unsigned llvm::MCRegUnitRootIterator::operator* ( ) const
inline

Dereference to get the current root register.

Definition at line 734 of file MCRegisterInfo.h.

◆ operator++()

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

Preincrement to move to the next root register.

Definition at line 744 of file MCRegisterInfo.h.

References assert(), isValid(), and MCRegUnitRootIterator().


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