1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00
llvm-mirror/unittests/CodeGen
Duncan P. N. Exon Smith ef89dbf50d ADT: Add explicit conversions for reverse ilist iterators
Add explicit conversions between forward and reverse ilist iterators.
These follow the conversion conventions of std::reverse_iterator, which
are off-by-one: the newly-constructed "reverse" iterator dereferences to
the previous node of the one sent in.  This has the benefit of
converting reverse ranges in place:
  - If [I, E) is a valid range,
  - then [reverse(E), reverse(I)) gives the same range in reverse order.

ilist_iterator::getReverse() is unchanged: it returns a reverse iterator
to the *same* node.

llvm-svn: 294349
2017-02-07 21:03:50 +00:00
..
GlobalISel GlobalISel: rename legalizer components to match others. 2016-10-14 22:18:18 +00:00
CMakeLists.txt ADT: Remove all ilist_iterator => pointer casts, NFC 2016-08-12 05:05:36 +00:00
DIEHashTest.cpp
LowLevelTypeTest.cpp GlobalISel: remove "unsized" LLT 2016-09-15 10:09:59 +00:00
MachineInstrBundleIteratorTest.cpp ADT: Add explicit conversions for reverse ilist iterators 2017-02-07 21:03:50 +00:00