LLVM 23.0.0git
llvm::FeatureBitset::const_iterator Class Reference

Yields the index of each set bit, skipping unset bits via countr_zero. More...

#include "llvm/TargetParser/SubtargetFeature.h"

Inheritance diagram for llvm::FeatureBitset::const_iterator:
[legend]

Public Member Functions

 const_iterator ()=default
 const_iterator (const FeatureBitset &Parent, unsigned Index)
unsigned operator* () const
const_iteratoroperator++ ()
bool operator== (const const_iterator &RHS) const
Public Member Functions inherited from llvm::iterator_facade_base< const_iterator, std::forward_iterator_tag, const unsigned, std::ptrdiff_t, const unsigned *, unsigned >
const_iterator operator+ (std::ptrdiff_t n) const
const_iterator operator- (std::ptrdiff_t n) const
const_iteratoroperator++ ()
const_iteratoroperator-- ()
bool operator!= (const const_iterator &RHS) const
bool operator> (const const_iterator &RHS) const
bool operator<= (const const_iterator &RHS) const
bool operator>= (const const_iterator &RHS) const
PointerProxy operator-> () const
ReferenceProxy operator[] (std::ptrdiff_t n) const

Additional Inherited Members

Public Types inherited from llvm::iterator_facade_base< const_iterator, std::forward_iterator_tag, const unsigned, std::ptrdiff_t, const unsigned *, unsigned >
enum  
using iterator_category
using value_type
using difference_type
using pointer
using reference

Detailed Description

Yields the index of each set bit, skipping unset bits via countr_zero.

Definition at line 100 of file SubtargetFeature.h.

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

llvm::FeatureBitset::const_iterator::const_iterator ( )
default

Referenced by operator++(), and operator==().

◆ const_iterator() [2/2]

llvm::FeatureBitset::const_iterator::const_iterator ( const FeatureBitset & Parent,
unsigned Index )
inline

Definition at line 109 of file SubtargetFeature.h.

References llvm::FeatureBitset::FeatureBitset().

Member Function Documentation

◆ operator*()

unsigned llvm::FeatureBitset::const_iterator::operator* ( ) const
inline

Definition at line 112 of file SubtargetFeature.h.

◆ operator++()

const_iterator & llvm::FeatureBitset::const_iterator::operator++ ( )
inline

Definition at line 113 of file SubtargetFeature.h.

References const_iterator().

◆ operator==()

bool llvm::FeatureBitset::const_iterator::operator== ( const const_iterator & RHS) const
inline

Definition at line 117 of file SubtargetFeature.h.

References const_iterator(), and RHS.


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