Add front/back accessors to indexed_accessor_range.
authorRiver Riddle <riddleriver@gmail.com>
Tue, 30 Jun 2020 05:37:05 +0000 (22:37 -0700)
committerRiver Riddle <riddleriver@gmail.com>
Tue, 30 Jun 2020 05:41:15 +0000 (22:41 -0700)
commit6b9a706200cbb27e5e863cfd41fb3684ee616e23
treea89bb6df5d6da49ca4e829ff6628de3d20d40ea4
parentf01d9e6fc3e291a2faed8c9b7dcbabf760f32bd6
Add front/back accessors to indexed_accessor_range.

These map to the similar accessors on ArrayRef and other random access containers.

This fixes a compilation error on MLIR ODS for variadic operands/results, which relied on the availability of front in certain situations.
llvm/include/llvm/ADT/STLExtras.h
mlir/test/lib/Dialect/Test/TestOps.td