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

MCSubRegIterator enumerates all sub-registers of Reg. More...

#include "llvm/MC/MCRegisterInfo.h"

Inheritance diagram for llvm::MCSubRegIterator:
Inheritance graph
[legend]

Public Member Functions

 MCSubRegIterator ()=default
 Constructs an end iterator.
 
 MCSubRegIterator (MCRegister Reg, const MCRegisterInfo *MCRI, bool IncludeSelf=false)
 
const MCPhysRegoperator* () const
 
MCSubRegIteratoroperator++ ()
 
bool isValid () const
 Returns true if this iterator is not yet at the end.
 
DerivedT & operator++ ()
 
- Public Member Functions inherited from llvm::iterator_adaptor_base< MCSubRegIterator, MCRegisterInfo::DiffListIterator, std::forward_iterator_tag, const MCPhysReg >
MCSubRegIteratoroperator+= (difference_type n)
 
MCSubRegIteratoroperator-= (difference_type n)
 
difference_type operator- (const MCSubRegIterator &RHS) const
 
MCSubRegIteratoroperator++ ()
 
MCSubRegIteratoroperator-- ()
 
std::conditional_t< std::is_same< const MCPhysReg, typename std::iterator_traits< MCRegisterInfo::DiffListIterator >::value_type >::value, typename std::iterator_traits< MCRegisterInfo::DiffListIterator >::reference, const MCPhysReg & > operator* () const
 
- Public Member Functions inherited from llvm::iterator_facade_base< DerivedT, IteratorCategoryT, T, DifferenceTypeT, PointerT, ReferenceT >
DerivedT operator+ (DifferenceTypeT n) const
 
DerivedT operator- (DifferenceTypeT n) const
 
DerivedT & operator++ ()
 
DerivedT operator++ (int)
 
DerivedT & operator-- ()
 
DerivedT operator-- (int)
 
bool operator!= (const DerivedT &RHS) const
 
bool operator> (const DerivedT &RHS) const
 
bool operator<= (const DerivedT &RHS) const
 
bool operator>= (const DerivedT &RHS) const
 
PointerProxy operator-> () const
 
ReferenceProxy operator[] (DifferenceTypeT n) const
 

Additional Inherited Members

- Public Types inherited from llvm::iterator_adaptor_base< MCSubRegIterator, MCRegisterInfo::DiffListIterator, std::forward_iterator_tag, const MCPhysReg >
using difference_type = typename std::iterator_traits< MCRegisterInfo::DiffListIterator >::difference_type
 
- Public Types inherited from llvm::iterator_facade_base< DerivedT, IteratorCategoryT, T, DifferenceTypeT, PointerT, ReferenceT >
using iterator_category = IteratorCategoryT
 
using value_type = T
 
using difference_type = DifferenceTypeT
 
using pointer = PointerT
 
using reference = ReferenceT
 
- Protected Types inherited from llvm::iterator_facade_base< DerivedT, IteratorCategoryT, T, DifferenceTypeT, PointerT, ReferenceT >
enum  { IsRandomAccess , IsBidirectional }
 
- Protected Member Functions inherited from llvm::iterator_adaptor_base< MCSubRegIterator, MCRegisterInfo::DiffListIterator, std::forward_iterator_tag, const MCPhysReg >
 iterator_adaptor_base ()=default
 
 iterator_adaptor_base (MCRegisterInfo::DiffListIterator u)
 
const MCRegisterInfo::DiffListIterator & wrapped () const
 
- Protected Attributes inherited from llvm::iterator_adaptor_base< MCSubRegIterator, MCRegisterInfo::DiffListIterator, std::forward_iterator_tag, const MCPhysReg >
MCRegisterInfo::DiffListIterator I
 

Detailed Description

MCSubRegIterator enumerates all sub-registers of Reg.

If IncludeSelf is set, Reg itself is included in the list.

Definition at line 520 of file MCRegisterInfo.h.

Constructor & Destructor Documentation

◆ MCSubRegIterator() [1/2]

llvm::MCSubRegIterator::MCSubRegIterator ( )
default

Constructs an end iterator.

◆ MCSubRegIterator() [2/2]

llvm::MCSubRegIterator::MCSubRegIterator ( MCRegister  Reg,
const MCRegisterInfo MCRI,
bool  IncludeSelf = false 
)
inline

Member Function Documentation

◆ isValid()

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

◆ operator*()

const MCPhysReg & llvm::MCSubRegIterator::operator* ( ) const
inline

Definition at line 541 of file MCRegisterInfo.h.

◆ operator++() [1/2]

DerivedT & llvm::iterator_adaptor_base< DerivedT, WrappedIteratorT, IteratorCategoryT, T, DifferenceTypeT, PointerT, ReferenceT >::operator++ ( )
inline

Definition at line 280 of file iterator.h.

◆ operator++() [2/2]

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

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