15 #ifndef MLIR_IR_REGIONGRAPHTRAITS_H 16 #define MLIR_IR_REGIONGRAPHTRAITS_H 19 #include "llvm/ADT/GraphTraits.h" 22 template <>
struct GraphTraits<
mlir::Block *> {
35 template <>
struct GraphTraits<Inverse<
mlir::Block *>> {
40 return inverseGraph.Graph;
51 struct GraphTraits<
mlir::Region *> :
public GraphTraits<mlir::Block *> {
67 struct GraphTraits<Inverse<
mlir::Region *>>
68 :
public GraphTraits<Inverse<mlir::Block *>> {
static NodeRef getEntryNode(GraphType fn)
Definition: RegionGraphTraits.h:55
Definition: InferTypeOpInterface.cpp:20
pointer_iterator< mlir::Region::iterator > nodes_iterator
Definition: RegionGraphTraits.h:57
static nodes_iterator nodes_begin(GraphType fn)
Definition: RegionGraphTraits.h:58
static nodes_iterator nodes_end(GraphType fn)
Definition: RegionGraphTraits.h:61
Definition: PassRegistry.cpp:413
Block represents an ordered list of Operations.
Definition: Block.h:21
Block & front()
Definition: Region.h:54
pred_iterator pred_end()
Definition: Block.h:228
static ChildIteratorType child_end(NodeRef node)
Definition: RegionGraphTraits.h:45
static NodeRef getEntryNode(Inverse< NodeRef > inverseGraph)
Definition: RegionGraphTraits.h:39
static NodeRef getEntryNode(GraphType fn)
Definition: RegionGraphTraits.h:72
static ChildIteratorType child_begin(NodeRef node)
Definition: RegionGraphTraits.h:42
iterator begin()
Definition: Region.h:44
SuccessorRange::iterator succ_iterator
Definition: Block.h:249
PredecessorIterator pred_iterator
Definition: Block.h:224
static NodeRef getEntryNode(NodeRef bb)
Definition: RegionGraphTraits.h:27
static nodes_iterator nodes_begin(GraphType fn)
Definition: RegionGraphTraits.h:75
Inverse< mlir::Region * > GraphType
Definition: RegionGraphTraits.h:69
static nodes_iterator nodes_end(GraphType fn)
Definition: RegionGraphTraits.h:78
static ChildIteratorType child_begin(NodeRef node)
Definition: RegionGraphTraits.h:29
iterator end()
Definition: Region.h:45
mlir::Block::succ_iterator ChildIteratorType
Definition: RegionGraphTraits.h:23
succ_iterator succ_end()
Definition: Block.h:251
Definition: BlockSupport.h:32
NodeRef NodeRef
Definition: RegionGraphTraits.h:70
static ChildIteratorType child_end(NodeRef node)
Definition: RegionGraphTraits.h:32
succ_iterator succ_begin()
Definition: Block.h:250
pointer_iterator< mlir::Region::iterator > nodes_iterator
Definition: RegionGraphTraits.h:74
pred_iterator pred_begin()
Definition: Block.h:225