MLIR  19.0.0git
Public Member Functions | List of all members
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. More...
 
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 343 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 603 of file OperationSupport.cpp.

Member Function Documentation

◆ operator!=()

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

Definition at line 358 of file ValueRange.h.

◆ operator*()

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

Definition at line 355 of file ValueRange.h.

References mlir::ValueUseIterator< OperandType >::getOperand().

◆ operator++()

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

Definition at line 610 of file OperationSupport.cpp.

◆ operator->()

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

Definition at line 354 of file ValueRange.h.

References mlir::ValueUseIterator< OperandType >::getOperand().

◆ operator==()

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

Definition at line 357 of file ValueRange.h.


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