[llvm-commits] [llvm] r156131 - /llvm/trunk/include/llvm/ADT/FoldingSet.h

Chris Lattner clattner at apple.com
Fri May 4 10:22:21 PDT 2012


On May 3, 2012, at 4:38 PM, Chandler Carruth wrote:

> Author: chandlerc
> Date: Thu May  3 18:38:34 2012
> New Revision: 156131
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=156131&view=rev
> Log:
> Add a FoldingSetVector datastructure which is analogous to a SetVector,
> but using a FoldingSet underneath and with a largely compatible
> interface to that of FoldingSet. This can be used anywhere a FoldingSet
> would be natural, but iteration order is significant. The initial
> intended use case is in Clang's template specialization lists to
> preserve instantiation order iteration.

If this is really only going to be used in one place, it might make sense to have clang just have both a vector and a folding set itself.

If it is generally useful, please mention this in the ProgrammersManual.html.  

Thanks!

-Chris



More information about the llvm-commits mailing list