MLIR
20.0.0git
|
This class represents a point being branched from in the methods of the RegionBranchOpInterface
.
More...
#include "mlir/Interfaces/ControlFlowInterfaces.h"
Public Member Functions | |
RegionBranchPoint (Region *region) | |
Creates a RegionBranchPoint that branches from the given region. More... | |
RegionBranchPoint (Region ®ion) | |
RegionBranchPoint (std::nullptr_t)=delete | |
Explicitly stops users from constructing with nullptr . More... | |
RegionBranchPoint (RegionSuccessor successor) | |
Constructs a RegionBranchPoint from the the target of a RegionSuccessor instance. More... | |
RegionBranchPoint & | operator= (Region ®ion) |
Assigns a region being branched from. More... | |
bool | isParent () const |
Returns true if branching from the parent op. More... | |
Region * | getRegionOrNull () const |
Returns the region if branching from a region. More... | |
Static Public Member Functions | |
static constexpr RegionBranchPoint | parent () |
Returns an instance of RegionBranchPoint representing the parent operation. More... | |
Friends | |
bool | operator== (RegionBranchPoint lhs, RegionBranchPoint rhs) |
Returns true if the two branch points are equal. More... | |
This class represents a point being branched from in the methods of the RegionBranchOpInterface
.
One can branch from one of two kinds of places:
RegionBranchOpInterface
implementation)Definition at line 198 of file ControlFlowInterfaces.h.
|
inline |
Creates a RegionBranchPoint
that branches from the given region.
The pointer must not be null.
Definition at line 206 of file ControlFlowInterfaces.h.
|
inline |
Definition at line 210 of file ControlFlowInterfaces.h.
|
delete |
Explicitly stops users from constructing with nullptr
.
|
inline |
Constructs a RegionBranchPoint
from the the target of a RegionSuccessor
instance.
Definition at line 217 of file ControlFlowInterfaces.h.
References mlir::RegionSuccessor::getSuccessor(), and mlir::RegionSuccessor::isParent().
|
inline |
Returns the region if branching from a region.
A null pointer otherwise.
Definition at line 235 of file ControlFlowInterfaces.h.
Referenced by printRegionEdgeName().
|
inline |
Returns true if branching from the parent op.
Definition at line 231 of file ControlFlowInterfaces.h.
|
inline |
Assigns a region being branched from.
Definition at line 225 of file ControlFlowInterfaces.h.
|
inlinestaticconstexpr |
Returns an instance of RegionBranchPoint
representing the parent operation.
Definition at line 202 of file ControlFlowInterfaces.h.
Referenced by collectUnderlyingAddressValues(), mlir::dataflow::AbstractDenseBackwardDataFlowAnalysis::processOperation(), and mlir::detail::verifyTypesAlongControlFlowEdges().
|
friend |
Returns true if the two branch points are equal.
Definition at line 238 of file ControlFlowInterfaces.h.