HomePhabricator

[llvm] Make Sequence reverse-iterable

Authored by gchatelet on Jun 8 2021, 6:18 AM.

Description

[llvm] Make Sequence reverse-iterable

This patch simplifies the implementation of Sequence and makes it compatible with llvm::reverse.
It exposes the reverse iterators through rbegin/rend which prevents a dangling reference in std::reverse_iterator::operator++().

Differential Revision: https://reviews.llvm.org/D102679