MLIR
20.0.0git
|
Implement a predecessor iterator for blocks. More...
#include "mlir/IR/BlockSupport.h"
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.
Definition at line 49 of file BlockSupport.h.
|
inline |
Initializes the operand type iterator to the specified operand iterator.
Definition at line 56 of file BlockSupport.h.
References unwrap().
|
inlineexplicit |
Definition at line 59 of file BlockSupport.h.
unsigned PredecessorIterator::getSuccessorIndex | ( | ) | const |