LLVM 23.0.0git
llvm::AMDGPU::HWEvents::const_iterator Class Reference

Iterates over the set bits of an HWEvent. More...

#include "Target/AMDGPU/AMDGPUHWEvents.h"

Inheritance diagram for llvm::AMDGPU::HWEvents::const_iterator:
[legend]

Public Member Functions

 const_iterator ()=default
 const_iterator (HWEvents H)
bool operator== (const const_iterator &Other) const
HWEvents operator* () const
const_iteratoroperator++ ()
Public Member Functions inherited from llvm::iterator_facade_base< const_iterator, std::forward_iterator_tag, HWEvents >
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, HWEvents >
enum  
using iterator_category
using value_type
using difference_type
using pointer
using reference

Detailed Description

Iterates over the set bits of an HWEvent.

NOLINTNEXTLINE

Definition at line 64 of file AMDGPUHWEvents.h.

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

llvm::AMDGPU::HWEvents::const_iterator::const_iterator ( )
default

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

◆ const_iterator() [2/2]

llvm::AMDGPU::HWEvents::const_iterator::const_iterator ( HWEvents H)
inline

Member Function Documentation

◆ operator*()

HWEvents llvm::AMDGPU::HWEvents::const_iterator::operator* ( ) const
inline

Definition at line 80 of file AMDGPUHWEvents.h.

References llvm::countr_zero(), and llvm::AMDGPU::HWEvents::HWEvents().

◆ operator++()

const_iterator & llvm::AMDGPU::HWEvents::const_iterator::operator++ ( )
inline

Definition at line 85 of file AMDGPUHWEvents.h.

References const_iterator(), llvm::countr_zero(), and llvm::maskTrailingZeros().

◆ operator==()

bool llvm::AMDGPU::HWEvents::const_iterator::operator== ( const const_iterator & Other) const
inline

Definition at line 76 of file AMDGPUHWEvents.h.

References const_iterator(), and llvm::AMDGPU::Other.


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