[PATCH] D35043: [ADT] Enable reverse iteration for DenseMap

Mandeep Singh Grang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 9 19:15:34 PDT 2017


mgrang updated this revision to Diff 105802.
mgrang added a comment.

DenseMap will now reverse iterate only for pointer-like keys. The flag ReverseIterate<bool> is now not exposed to clients - they would now call shouldReverseIterate() to check whether to reverse iterate or not.


Repository:
  rL LLVM

https://reviews.llvm.org/D35043

Files:
  include/llvm/ADT/DenseMap.h
  include/llvm/ADT/SmallPtrSet.h
  include/llvm/Support/ReverseIteration.h
  unittests/ADT/ReverseIterationTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35043.105802.patch
Type: text/x-patch
Size: 14947 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170710/af571b77/attachment.bin>


More information about the llvm-commits mailing list