llvm-project/llvm/unittests/CodeGen
Duncan P. N. Exon Smith fcd69daaa1 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 Fix header comment in unittests/CodeGen/DIEHashTest.cpp. 2016-07-13 18:38:20 +00:00
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