MLIR: mlir::IRObjectWithUseList< OperandType > Class Template Reference (original) (raw)

This class represents a single IR object that contains a use list. More...

#include "[mlir/IR/UseDefLists.h](UseDefLists%5F8h%5Fsource.html)"

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

Public Types
using use_iterator = ValueUseIterator< OperandType >
using use_range = iterator_range< use_iterator >
using user_iterator = ValueUserIterator< use_iterator, OperandType >
using user_range = iterator_range< user_iterator >
Public Member Functions
~IRObjectWithUseList ()
void dropAllUses ()
Drop all uses of this object from their respective owners. More...
template
void replaceAllUsesWith (ValueT &&newValue)
Replace all uses of 'this' value with the new value, updating anything in the IR that uses 'this' to use the other value instead. More...
void shuffleUseList (ArrayRef< unsigned > indices)
Shuffle the use-list chain according to the provided indices vector, which need to represent a valid shuffle. More...
use_iterator use_begin () const
use_iterator use_end () const
use_range getUses () const
Returns a range of all uses, which is useful for iterating over all uses. More...
bool hasOneUse () const
Returns true if this value has exactly one use. More...
bool use_empty () const
Returns true if this value has no uses. More...
user_iterator user_begin () const
user_iterator user_end () const
user_range getUsers () const
Returns a range of all users. More...
Protected Member Functions
IRObjectWithUseList ()=default
OperandType * getFirstUse () const
Return the first operand that is using this value, for use by custom use/def iterators. More...

Detailed Description

template

class mlir::IRObjectWithUseList< OperandType >

This class represents a single IR object that contains a use list.

Definition at line 195 of file UseDefLists.h.

Member Typedef Documentation

use_iterator

template

use_range

template

user_iterator

template

user_range

template

Constructor & Destructor Documentation

template

IRObjectWithUseList()

template

Member Function Documentation

dropAllUses()

template

getFirstUse()

template

Return the first operand that is using this value, for use by custom use/def iterators.

Definition at line 281 of file UseDefLists.h.

getUsers()

template

getUses()

template

hasOneUse()

template

replaceAllUsesWith()

template

template

shuffleUseList()

template

use_begin()

template

use_empty()

template

use_end()

template

user_begin()

template

user_end()

template


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