My Project
|
#include <BlockSupport.h>
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... | |
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.
using mlir::PredecessorIterator::reference = Block * |
|
inline |
Initializes the operand type iterator to the specified operand iterator.
|
inlineexplicit |
unsigned PredecessorIterator::getSuccessorIndex | ( | ) | const |
Get the successor number in the predecessor terminator.