MLIR 22.0.0git
mlir::ResultRange::UseIterator Class Referencefinal

This class implements a use iterator for a range of operation results. More...

#include "mlir/IR/ValueRange.h"

Inheritance diagram for mlir::ResultRange::UseIterator:

Public Member Functions

 UseIterator (ResultRange results, bool end=false)
 Initialize the UseIterator.
UseIteratoroperator++ ()
OpOperandoperator-> () const
OpOperandoperator* () const
bool operator== (const UseIterator &rhs) const
bool operator!= (const UseIterator &rhs) const

Detailed Description

This class implements a use iterator for a range of operation results.

This iterates over all uses of all results within the given result range.

Definition at line 348 of file ValueRange.h.

Constructor & Destructor Documentation

◆ UseIterator()

ResultRange::UseIterator::UseIterator ( ResultRange results,
bool end = false )
explicit

Initialize the UseIterator.

Specify end to return iterator to last use, otherwise this is an iterator to the first use.

Definition at line 599 of file OperationSupport.cpp.

References mlir::ResultRange::ResultRange().

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

Member Function Documentation

◆ operator!=()

bool mlir::ResultRange::UseIterator::operator!= ( const UseIterator & rhs) const
inline

Definition at line 363 of file ValueRange.h.

References rhs, and UseIterator().

◆ operator*()

OpOperand & mlir::ResultRange::UseIterator::operator* ( ) const
inline

Definition at line 360 of file ValueRange.h.

◆ operator++()

ResultRange::UseIterator & ResultRange::UseIterator::operator++ ( )

Definition at line 606 of file OperationSupport.cpp.

◆ operator->()

OpOperand * mlir::ResultRange::UseIterator::operator-> ( ) const
inline

Definition at line 359 of file ValueRange.h.

◆ operator==()

bool mlir::ResultRange::UseIterator::operator== ( const UseIterator & rhs) const
inline

Definition at line 362 of file ValueRange.h.

References rhs, and UseIterator().


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