Revert "[llvm] Make Sequence reverse-iterable"
authorMehdi Amini <joker.eph@gmail.com>
Tue, 8 Jun 2021 17:01:05 +0000 (17:01 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Tue, 8 Jun 2021 17:03:10 +0000 (17:03 +0000)
commita4e2cf712af3a3c7a4389e400a29da244b276f96
tree34e9fc2074b89d8bfa6624a3371ac305772bfb5c
parent52396577a2d85ef1b18f86e643fe3b1033750e15
Revert "[llvm] Make Sequence reverse-iterable"

This reverts commit e772216e708937988c039420d2c559568f91ae27
(and fixup 7f6c878a2c035eb6325ab228d9bc2d257509d959).

The build is broken with gcc5 host compiler:

In file included from
                 from mlir/lib/Dialect/Utils/StructuredOpsUtils.cpp:9:
tools/mlir/include/mlir/IR/BuiltinAttributes.h.inc:424:57: error: type/value mismatch at argument 1 in template parameter list for 'template<class ItTy, class FuncTy, class FuncReturnTy> class llvm::mapped_iterator'
                               std::function<T(ptrdiff_t)>>;
                                                         ^
tools/mlir/include/mlir/IR/BuiltinAttributes.h.inc:424:57: note:   expected a type, got 'decltype (seq<ptrdiff_t>(0, 0))::const_iterator'
llvm/include/llvm/ADT/Sequence.h
llvm/unittests/ADT/SequenceTest.cpp
mlir/include/mlir/IR/BuiltinAttributes.td
mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp
mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp