|
MLIR 23.0.0git
|
This class represents a successor of a region. More...
#include "mlir/Interfaces/ControlFlowInterfaces.h"
Public Member Functions | |
| RegionSuccessor (Region *region) | |
| Initialize a successor that branches to a region of the parent operation. | |
| RegionSuccessor (Operation *operation) | |
| Initialize a successor that branches after/out of an operation. | |
| Region * | getSuccessor () const |
| Return the given region successor. | |
| Operation * | getSuccessorOp () const |
| Return the given operation successor. | |
| bool | isRegion () const |
| Return true if the successor is a region. | |
| bool | isOperation () const |
| Return true if the successor is an operation. | |
| bool | operator== (RegionSuccessor rhs) const |
| bool | operator== (const Region *region) const |
| bool | operator== (const Operation *operation) const |
Friends | |
| bool | operator!= (RegionSuccessor lhs, RegionSuccessor rhs) |
This class represents a successor of a region.
A region successor can either target another region or target an ancestor operation (at the moment, limited to the immediate parent operation). In the latter case, the control flow branches after/out of the target operation.
Definition at line 199 of file ControlFlowInterfaces.h.
|
inline |
Initialize a successor that branches to a region of the parent operation.
Definition at line 202 of file ControlFlowInterfaces.h.
Referenced by operator!=, and operator==().
|
inline |
Initialize a successor that branches after/out of an operation.
Definition at line 207 of file ControlFlowInterfaces.h.
|
inline |
Return the given region successor.
Returns nullptr if the successor is an operation.
Definition at line 213 of file ControlFlowInterfaces.h.
Referenced by mlir::operator<<(), operator==(), mlir::dataflow::IntegerRangeAnalysis::visitNonControlFlowArguments(), and mlir::dataflow::LivenessAnalysis::visitNonControlFlowArguments().
|
inline |
Return the given operation successor.
Returns nullptr if the successor is a region.
Definition at line 219 of file ControlFlowInterfaces.h.
Referenced by mlir::operator<<(), and operator==().
|
inline |
Return true if the successor is an operation.
Definition at line 227 of file ControlFlowInterfaces.h.
Referenced by getSingleRegionSuccessorInputs().
|
inline |
Return true if the successor is a region.
Definition at line 224 of file ControlFlowInterfaces.h.
Referenced by mlir::dataflow::LivenessAnalysis::visitNonControlFlowArguments().
Definition at line 237 of file ControlFlowInterfaces.h.
References getSuccessorOp().
Definition at line 233 of file ControlFlowInterfaces.h.
References getSuccessor().
|
inline |
Definition at line 229 of file ControlFlowInterfaces.h.
References RegionSuccessor(), and rhs.
|
friend |
Definition at line 241 of file ControlFlowInterfaces.h.
References lhs, RegionSuccessor(), and rhs.