Mehdi Amini
fa0f96b083
[ADT] Add a reserve() method to DenseSet as well as an insert() for R-value
...
Recommit 278600 with some fixes to make the test more robust.
llvm-svn: 278604
2016-08-13 20:42:19 +00:00
Mehdi Amini
bf0010934b
Revert "[ADT] Add a reserve method to DenseSet as well as an insert() for R-value"
...
This reverts commit r278600. The unittest does not pass on MSVC, there is
an extra move. Investigating how to make it more robust.
llvm-svn: 278603
2016-08-13 20:14:39 +00:00
Mehdi Amini
d866d8a03f
[ADT] Add a reserve method to DenseSet as well as an insert() for R-value
...
llvm-svn: 278600
2016-08-13 19:40:13 +00:00
Lang Hames
b27a3b0d43
[ADT] Add a 'find_as' operation to DenseSet.
...
This operation is analogous to its counterpart in DenseMap: It allows lookup
via cheap-to-construct keys (provided that getHashValue and isEqual are
implemented for the cheap key-type in the DenseMapInfo specialization).
Thanks to Chandler for the review.
llvm-svn: 220168
2014-10-19 19:36:33 +00:00
David Blaikie
7c8d13911a
Fix some -Wsign-compare fallout from changing container count member functions to return unsigned instead of bool.
...
llvm-svn: 211393
2014-06-20 19:54:13 +00:00
Craig Topper
bc40d7e023
Fix includes of llvm files that used angle brackets.
...
llvm-svn: 163979
2012-09-15 18:45:38 +00:00
Stuart Hastings
e54523d56e
Prevent looping when DenseSet is abused.
...
llvm-svn: 70572
2009-05-01 20:47:53 +00:00