16 #ifndef LLVM_ADT_SEQUENCE_H 17 #define LLVM_ADT_SEQUENCE_H 29 template <
typename ValueT>
32 std::random_access_iterator_tag,
34 using BaseT =
typename value_sequence_iterator::iterator_facade_base;
45 : Value(
std::move(
Arg.Value)) {}
47 template <
typename U,
typename Enabler = decltype(ValueT(std::declval<U>()))>
58 using BaseT::operator-;
60 return Value - RHS.Value;
64 return Value == RHS.Value;
67 return Value < RHS.Value;
75 template <
typename ValueT>
84 #endif // LLVM_ADT_SEQUENCE_H This class represents lattice values for constants.
This provides a very simple, boring adaptor for a begin and end iterator into a range type...
difference_type operator-(const value_sequence_iterator &RHS) const
typename BaseT::reference reference
value_sequence_iterator(value_sequence_iterator &&Arg)
value_sequence_iterator()=default
bool operator==(const value_sequence_iterator &RHS) const
CRTP base class which implements the entire standard iterator facade in terms of a minimal subset of ...
value_sequence_iterator(U &&Value)
value_sequence_iterator & operator-=(difference_type N)
value_sequence_iterator & operator+=(difference_type N)
iterator_range< T > make_range(T x, T y)
Convenience function for iterating over sub-ranges.
bool operator<(const value_sequence_iterator &RHS) const
iterator_range< detail::value_sequence_iterator< ValueT > > seq(ValueT Begin, ValueT End)
A range adaptor for a pair of iterators.
amdgpu Simplify well known AMD library false Value Value * Arg
reference operator*() const
LLVM Value Representation.
typename BaseT::difference_type difference_type