MLIR  19.0.0git
Public Member Functions | Protected Attributes | List of all members
mlir::ValueUseIterator< OperandType > Class Template Reference

An iterator class that allows for iterating over the uses of an IR operand type. More...

#include "mlir/IR/UseDefLists.h"

+ Inheritance diagram for mlir::ValueUseIterator< OperandType >:

Public Member Functions

 ValueUseIterator (detail::IROperandBase *use=nullptr)
 
OperationgetUser () const
 Returns the operation that owns this use. More...
 
OperandType * getOperand () const
 Returns the current operands. More...
 
OperandType & operator* () const
 
ValueUseIteratoroperator++ ()
 
bool operator== (const ValueUseIterator &rhs) const
 

Protected Attributes

detail::IROperandBasecurrent
 

Detailed Description

template<typename OperandType>
class mlir::ValueUseIterator< OperandType >

An iterator class that allows for iterating over the uses of an IR operand type.

Definition at line 303 of file UseDefLists.h.

Constructor & Destructor Documentation

◆ ValueUseIterator()

template<typename OperandType >
mlir::ValueUseIterator< OperandType >::ValueUseIterator ( detail::IROperandBase use = nullptr)
inline

Definition at line 308 of file UseDefLists.h.

Member Function Documentation

◆ getOperand()

template<typename OperandType >
OperandType* mlir::ValueUseIterator< OperandType >::getOperand ( ) const
inline

◆ getUser()

template<typename OperandType >
Operation* mlir::ValueUseIterator< OperandType >::getUser ( ) const
inline

Returns the operation that owns this use.

Definition at line 311 of file UseDefLists.h.

References mlir::ValueUseIterator< OperandType >::current, and mlir::detail::IROperandBase::getOwner().

◆ operator*()

template<typename OperandType >
OperandType& mlir::ValueUseIterator< OperandType >::operator* ( ) const
inline

◆ operator++()

template<typename OperandType >
ValueUseIterator& mlir::ValueUseIterator< OperandType >::operator++ ( )
inline

◆ operator==()

template<typename OperandType >
bool mlir::ValueUseIterator< OperandType >::operator== ( const ValueUseIterator< OperandType > &  rhs) const
inline

Definition at line 326 of file UseDefLists.h.

References mlir::ValueUseIterator< OperandType >::current.

Member Data Documentation

◆ current

template<typename OperandType >
detail::IROperandBase* mlir::ValueUseIterator< OperandType >::current
protected

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