My Project
Public Types | Public Member Functions | List of all members
mlir::PredecessorIterator Class Referencefinal

#include <BlockSupport.h>

Inheritance diagram for mlir::PredecessorIterator:
Inheritance graph
[legend]
Collaboration diagram for mlir::PredecessorIterator:
Collaboration graph
[legend]

Public Types

using reference = Block *
 

Public Member Functions

 PredecessorIterator (ValueUseIterator< BlockOperand > it)
 Initializes the operand type iterator to the specified operand iterator. More...
 
 PredecessorIterator (BlockOperand *operand)
 
unsigned getSuccessorIndex () const
 Get the successor number in the predecessor terminator. More...
 

Detailed Description

Implement a predecessor iterator for blocks. This works by walking the use lists of the blocks. The entries on this list are the BlockOperands that are embedded into terminator operations. From the operand, we can get the terminator that contains it, and its parent block is the predecessor.

Member Typedef Documentation

◆ reference

Constructor & Destructor Documentation

◆ PredecessorIterator() [1/2]

mlir::PredecessorIterator::PredecessorIterator ( ValueUseIterator< BlockOperand it)
inline

Initializes the operand type iterator to the specified operand iterator.

◆ PredecessorIterator() [2/2]

mlir::PredecessorIterator::PredecessorIterator ( BlockOperand operand)
inlineexplicit

Member Function Documentation

◆ getSuccessorIndex()

unsigned PredecessorIterator::getSuccessorIndex ( ) const

Get the successor number in the predecessor terminator.


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