MLIR  15.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 >:
+ Collaboration 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 23 of file UseDefLists.h.

Constructor & Destructor Documentation

◆ ValueUseIterator()

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

Definition at line 250 of file UseDefLists.h.

Member Function Documentation

◆ getOperand()

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

Returns the current operands.

Definition at line 256 of file UseDefLists.h.

◆ getUser()

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

Returns the operation that owns this use.

Definition at line 253 of file UseDefLists.h.

◆ operator*()

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

Definition at line 257 of file UseDefLists.h.

◆ operator++()

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

Definition at line 262 of file UseDefLists.h.

◆ operator==()

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

Definition at line 268 of file UseDefLists.h.

Member Data Documentation

◆ current

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

Definition at line 273 of file UseDefLists.h.


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