1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/include/llvm/ADT
David Blaikie 5f252ed13e Tidy up a bit of r304516, use SmallVector::assign rather than for loop
This might give a few better opportunities to optimize these to memcpy
rather than loops - also a few minor cleanups (StringRef-izing,
templating (to avoid std::function indirection), etc).

The SmallVector::assign(iter, iter) could be improved with the use of
SFINAE, but the (iter, iter) ctor and append(iter, iter) need it to and
don't have it - so, workaround it for now rather than bothering with the
added complexity.

(also, as noted in the added FIXME, these assign ops could potentially
be optimized better at least for non-trivially-copyable types)

llvm-svn: 304566
2017-06-02 17:24:26 +00:00
..
AllocatorList.h ADT: Fix build after r281182 2016-09-11 22:55:46 +00:00
APFloat.h [AsmWriter/APFloat] FP constant printing: Avoid usage of locale dependent snprinf 2017-04-21 02:52:17 +00:00
APInt.h [APInt] Add support for dividing or remainder by a uint64_t or int64_t. 2017-05-19 16:43:54 +00:00
APSInt.h [APInt] Add ashrInPlace method and rewrite ashr to make a copy and then call ashrInPlace. 2017-04-24 17:18:47 +00:00
ArrayRef.h Use MutableArrayRef for APFloat::convertToInteger 2017-03-20 14:40:12 +00:00
BitmaskEnum.h Force a semicolon at the end of the LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE() macro. 2016-07-13 23:52:19 +00:00
BitVector.h [BitVector] Add find_[first,last]_[set,unset]_in. 2017-05-17 15:49:45 +00:00
BreadthFirstIterator.h [BFIterator] Remove an assertion that doesn't hold. NFCI. 2017-04-06 20:32:10 +00:00
CachedHashString.h [ADT] Don't rely on string literals not being convertible to non-const char* in CachedHashString. 2016-10-21 22:10:23 +00:00
DAGDeltaAlgorithm.h [ADT] Fix some Clang-tidy modernize-use-default and Include What You Use warnings; other minor fixes. 2016-11-23 00:30:24 +00:00
DeltaAlgorithm.h
DenseMap.h Add support for DenseMap/DenseSet count and find using const pointers 2017-03-10 00:25:26 +00:00
DenseMapInfo.h [ADT] Add a DenseMapInfo<T> for shorts. 2017-03-11 02:52:48 +00:00
DenseSet.h Revert "Make naming in Host.h in line with coding standards." 2017-03-30 11:06:25 +00:00
DepthFirstIterator.h Trailing whitespace. 2017-04-02 23:57:17 +00:00
edit_distance.h
EpochTracker.h Add link-time detection of LLVM_ABI_BREAKING_CHECKS mismatch 2016-11-28 22:23:53 +00:00
EquivalenceClasses.h [ADT] Fix some Clang-tidy modernize-use-default and Include What You Use warnings; other minor fixes. 2016-11-23 00:30:24 +00:00
FoldingSet.h [ADT] Fix some Clang-tidy modernize-use-default and Include What You Use warnings; other minor fixes. 2016-11-23 00:30:24 +00:00
GraphTraits.h Drop graph_ prefix 2017-02-09 20:37:46 +00:00
Hashing.h [NFC] Header cleanup 2016-04-18 09:17:29 +00:00
ilist_base.h ADT: Add sentinel tracking and custom tags to ilists 2016-09-11 16:20:53 +00:00
ilist_iterator.h ADT: Add explicit conversions for reverse ilist iterators 2017-02-07 21:03:50 +00:00
ilist_node_base.h ADT: Add sentinel tracking and custom tags to ilists 2016-09-11 16:20:53 +00:00
ilist_node_options.h Add link-time detection of LLVM_ABI_BREAKING_CHECKS mismatch 2016-11-28 22:23:53 +00:00
ilist_node.h [ilist_node] Add a getReverseIterator() method and a unittest for it. 2016-11-02 00:59:58 +00:00
ilist.h [ADT, IR] Fix some Clang-tidy modernize-use-equals-delete and Include What You Use warnings; other minor fixes (NFC). 2016-12-07 22:06:02 +00:00
ImmutableList.h Revert "[ADT] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC)." 2017-05-19 02:56:37 +00:00
ImmutableMap.h Revert "[ADT] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC)." 2017-05-19 02:56:37 +00:00
ImmutableSet.h Revert "[ADT] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC)." 2017-05-19 02:56:37 +00:00
IndexedMap.h Revert "[ADT] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC)." 2017-05-19 02:56:37 +00:00
IntEqClasses.h IntEqClasses: Let join() return the new leader 2016-01-08 01:16:39 +00:00
IntervalMap.h Revert "[ADT] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC)." 2017-05-19 02:56:37 +00:00
IntrusiveRefCntPtr.h Revert "[ADT] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC)." 2017-05-19 02:56:37 +00:00
iterator_range.h Remove iterator_range::end. 2015-09-24 00:23:07 +00:00
iterator.h [IR] Redesign the case iterator in SwitchInst to actually be an iterator 2017-04-12 07:27:28 +00:00
MapVector.h Revert "[ADT] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC)." 2017-05-19 02:56:37 +00:00
None.h Attempt to workaround MSVC build issue where I suspect an enum class constant 0 is considered a possible null pointer 2017-01-16 20:28:59 +00:00
Optional.h Revert "[ADT] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC)." 2017-05-19 02:56:37 +00:00
PackedVector.h Revert "[ADT] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC)." 2017-05-19 02:56:37 +00:00
PointerEmbeddedInt.h Revert "[ADT] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC)." 2017-05-19 02:56:37 +00:00
PointerIntPair.h Revert "[ADT] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC)." 2017-05-19 02:56:37 +00:00
PointerSumType.h Revert "[ADT] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC)." 2017-05-19 02:56:37 +00:00
PointerUnion.h Revert "[ADT] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC)." 2017-05-19 02:56:37 +00:00
PostOrderIterator.h [ADT] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC). 2017-05-16 23:10:25 +00:00
PriorityQueue.h Use the range variant of find instead of unpacking begin/end 2016-08-11 22:21:41 +00:00
PriorityWorklist.h [ADT] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC). 2017-05-16 23:10:25 +00:00
SCCIterator.h [ADT] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC). 2017-05-16 23:10:25 +00:00
ScopedHashTable.h ScopedHashTable lookup should be const 2017-01-31 22:01:08 +00:00
ScopeExit.h ADT: Prefer the LLVM_NODISCARD spelling 2016-10-16 20:42:34 +00:00
Sequence.h [ADT] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC). 2017-05-16 23:10:25 +00:00
SetOperations.h [SimplifyCFG] Merge conditional stores 2015-11-04 15:28:04 +00:00
SetVector.h [ADT] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC). 2017-05-16 23:10:25 +00:00
simple_ilist.h Revert "[ADT] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC)." 2017-05-19 02:56:37 +00:00
SmallBitVector.h BitVector: add iterators for set bits 2017-05-17 01:07:53 +00:00
SmallPtrSet.h SmallPtrSetImpl/SmallPtrSet: Add a public value_type and key_type 2017-05-21 23:41:51 +00:00
SmallSet.h Fix some Clang-tidy modernize-use-default and Include What You Use warnings; other minor fixes (NFC). 2016-11-30 23:10:42 +00:00
SmallString.h [ADT] Fix some Clang-tidy modernize-use-default and Include What You Use warnings; other minor fixes. 2016-11-23 00:30:24 +00:00
SmallVector.h Tidy up a bit of r304516, use SmallVector::assign rather than for loop 2017-06-02 17:24:26 +00:00
SparseBitVector.h [ADT] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC). 2017-05-16 23:10:25 +00:00
SparseMultiSet.h [ADT] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC). 2017-05-16 23:10:25 +00:00
SparseSet.h [ADT] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC). 2017-05-16 23:10:25 +00:00
Statistic.h [Statistics] Add a method to atomically update a statistic that contains a maximum 2017-05-18 00:51:39 +00:00
STLExtras.h Suppress all uses of LLVM_END_WITH_NULL. NFC. 2017-05-09 19:31:13 +00:00
StringExtras.h [ADT] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC). 2017-05-16 23:10:25 +00:00
StringMap.h [ADT] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC). 2017-05-16 23:10:25 +00:00
StringRef.h [ADT] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC). 2017-05-16 23:10:25 +00:00
StringSet.h [ADT] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC). 2017-05-16 23:10:25 +00:00
StringSwitch.h Avoid calling std::memcmp with nullptr 2016-11-15 00:01:40 +00:00
TinyPtrVector.h [ADT] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC). 2017-05-16 23:10:25 +00:00
Triple.h [Nios2] Target registration 2017-05-29 09:48:30 +00:00
Twine.h Add support for formatv to llvm::Twine. 2016-12-17 00:38:15 +00:00
UniqueVector.h [ADT] Fix some Clang-tidy modernize-use-using warnings; other minor fixes (NFC). 2017-05-16 23:10:25 +00:00
VariadicFunction.h