[all-commits] [llvm/llvm-project] e05690: [llvm] Make Sequence reverse-iterable
Guillaume Chatelet via All-commits
all-commits at lists.llvm.org
Thu Jun 10 04:15:57 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e0569033e21ded970783cab557ba034b134b9c69
https://github.com/llvm/llvm-project/commit/e0569033e21ded970783cab557ba034b134b9c69
Author: Guillaume Chatelet <gchatelet at google.com>
Date: 2021-06-10 (Thu, 10 Jun 2021)
Changed paths:
M llvm/include/llvm/ADT/Sequence.h
M llvm/unittests/ADT/SequenceTest.cpp
M mlir/include/mlir/IR/BuiltinAttributes.td
M mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp
M mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
Log Message:
-----------
[llvm] Make Sequence reverse-iterable
This is a roll forward of D102679.
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++().
Note: Compared to D102679, this patch introduces a `asSmallVector()` member function and fixes compilation issue with GCC 5.
Differential Revision: https://reviews.llvm.org/D103948
More information about the All-commits
mailing list