LLVM 20.0.0git
Public Member Functions | List of all members
llvm::MCRegUnitMaskIterator Class Reference

MCRegUnitMaskIterator enumerates a list of register units and their associated lane masks for Reg. More...

#include "llvm/MC/MCRegisterInfo.h"

Public Member Functions

 MCRegUnitMaskIterator ()=default
 
 MCRegUnitMaskIterator (MCRegister Reg, const MCRegisterInfo *MCRI)
 Constructs an iterator that traverses the register units and their associated LaneMasks in Reg.
 
std::pair< unsigned, LaneBitmaskoperator* () const
 Returns a (RegUnit, LaneMask) pair.
 
bool isValid () const
 Returns true if this iterator is not yet at the end.
 
MCRegUnitMaskIteratoroperator++ ()
 Moves to the next position.
 

Detailed Description

MCRegUnitMaskIterator enumerates a list of register units and their associated lane masks for Reg.

The register units are in ascending numerical order.

Definition at line 659 of file MCRegisterInfo.h.

Constructor & Destructor Documentation

◆ MCRegUnitMaskIterator() [1/2]

llvm::MCRegUnitMaskIterator::MCRegUnitMaskIterator ( )
default

◆ MCRegUnitMaskIterator() [2/2]

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

Constructs an iterator that traverses the register units and their associated LaneMasks in Reg.

Definition at line 668 of file MCRegisterInfo.h.

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

Member Function Documentation

◆ isValid()

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

◆ operator*()

std::pair< unsigned, LaneBitmask > llvm::MCRegUnitMaskIterator::operator* ( ) const
inline

Returns a (RegUnit, LaneMask) pair.

Definition at line 675 of file MCRegisterInfo.h.

◆ operator++()

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

Moves to the next position.

Definition at line 683 of file MCRegisterInfo.h.


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