18 #ifndef LLVM_ADT_GRAPHTRAITS_H
19 #define LLVM_ADT_GRAPHTRAITS_H
28 template<
class GraphType>
59 using NodeRef =
typename GraphType::UnknownGraphTypeError;
75 template <
class GraphType>
87 template <
class GraphType>
93 template <
class GraphType>
94 iterator_range<typename GraphTraits<Inverse<GraphType>>::nodes_iterator>
100 template <
class GraphType>
101 iterator_range<typename GraphTraits<GraphType>::ChildIteratorType>
107 template <
class GraphType>
108 iterator_range<typename GraphTraits<Inverse<GraphType>>::ChildIteratorType>
116 #endif // LLVM_ADT_GRAPHTRAITS_H
iterator_range< typename GraphTraits< GraphType >::ChildIteratorType > children(const typename GraphTraits< GraphType >::NodeRef &G)
This provides a very simple, boring adaptor for a begin and end iterator into a range type...
iterator_range< typename GraphTraits< Inverse< GraphType > >::ChildIteratorType > inverse_children(const typename GraphTraits< GraphType >::NodeRef &G)
typename FlatIt< RegionNode * >::UnknownGraphTypeError NodeRef
iterator_range< typename GraphTraits< Inverse< GraphType > >::nodes_iterator > inverse_nodes(const GraphType &G)
iterator_range< T > make_range(T x, T y)
Convenience function for iterating over sub-ranges.
A range adaptor for a pair of iterators.
iterator_range< typename GraphTraits< GraphType >::nodes_iterator > nodes(const GraphType &G)
Inverse(const GraphType &G)