[PATCH] D47942: [SmallSet] Add SmallSetIterator.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 8 06:17:46 PDT 2018
fhahn created this revision.
fhahn added reviewers: dblaikie, craig.topper.
Herald added a subscriber: mgrang.
fhahn added a dependency: D47940: [SmallSet] Add some simple unit tests..
fhahn added a dependent revision: D46827: [VPlan] Add VPInstruction to VPRecipe transformation..
This patch adds a simple const_iterator implementation for SmallSet by
delegating to either a SmallVector::const_iterator or
std::set::const_iterator, depending on which storage is used by the
SmallSet.
The motivation for adding this is https://reviews.llvm.org/D46827, where it is helpful to iterate
over a SmallSet.
https://reviews.llvm.org/D47942
Files:
include/llvm/ADT/SmallSet.h
unittests/ADT/SmallSetTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47942.150504.patch
Type: text/x-patch
Size: 3140 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180608/b016f120/attachment.bin>
More information about the llvm-commits
mailing list