llvm-6502/include/llvm/ADT
Chandler Carruth 8e704b16f1 [ADT] Add a remarkbly useful little helper routine to ArrayRef for
checking whether the ArrayRef is equal to an explicit list of arguments.

This is particularly easy to implement even without variadic templates
because ArrayRef happens to be homogeneously typed. As a consequence we
can use a "clever" wrapper type and default arguments to capture in
a single method many arguments as well as *how many* arguments the user
specified.

Thanks to Dave Blaikie for helping me pull together this little helper.
Suggestions for how to improve or generalize it are of course welcome.
I'll be using it immediately in my follow-up patch. =D

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214041 91177308-0d34-0410-b5e6-96231b3b80d8
2014-07-27 01:11:19 +00:00
..
APFloat.h
APInt.h
APSInt.h ADT: correct typo in comment 2014-06-18 18:08:55 +00:00
ArrayRef.h [ADT] Add a remarkbly useful little helper routine to ArrayRef for 2014-07-27 01:11:19 +00:00
BitVector.h Attempting to fix the 64 bit bots. 2014-06-20 10:52:57 +00:00
DAGDeltaAlgorithm.h
DeltaAlgorithm.h
DenseMap.h Reverting size_type for the containers from size_type to unsigned. 2014-06-20 12:20:56 +00:00
DenseMapInfo.h
DenseSet.h Reverting size_type for the containers from size_type to unsigned. 2014-06-20 12:20:56 +00:00
DepthFirstIterator.h
edit_distance.h [C++11] Replace OwningPtr with std::unique_ptr in places where it doesn't break the API. 2014-04-21 09:34:48 +00:00
EquivalenceClasses.h [C++] Use 'nullptr'. 2014-04-28 04:05:08 +00:00
FoldingSet.h Add specialization of FoldingSetTrait for std::pair. 2014-06-15 14:42:25 +00:00
GraphTraits.h
Hashing.h Using llvm::sys::swapByteOrder() for the common case of byte-swapping a value in place 2014-06-14 13:18:07 +00:00
ilist_node.h [C++] Use 'nullptr'. 2014-04-24 06:44:33 +00:00
ilist.h
ImmutableList.h
ImmutableMap.h [C++] Use 'nullptr'. 2014-04-24 06:44:33 +00:00
ImmutableSet.h [C++] Use 'nullptr'. 2014-04-24 06:44:33 +00:00
IndexedMap.h
IntEqClasses.h
IntervalMap.h [C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr. 2014-04-14 00:51:57 +00:00
IntrusiveRefCntPtr.h Remove IntrusiveRefCntPtr::getPtr() function 2014-07-05 22:20:59 +00:00
iterator_range.h
iterator.h [ADT] Provide some helpful static_asserts for using operations of the 2014-04-30 00:49:32 +00:00
MapVector.h ADT: Add MapVector::remove_if 2014-07-15 20:24:56 +00:00
None.h
Optional.h
PackedVector.h
PointerIntPair.h
PointerUnion.h [ADT] Teach PointerUnion to support assignment directly from nullptr to 2014-04-29 00:14:27 +00:00
PostOrderIterator.h [C++11] More 'nullptr' conversion. In some cases just using a boolean check instead of comparing to nullptr. 2014-04-14 00:51:57 +00:00
PriorityQueue.h
SCCIterator.h SCC: Use the reference typedef 2014-04-25 20:52:08 +00:00
ScopedHashTable.h Reverting size_type for the containers from size_type to unsigned. 2014-06-20 12:20:56 +00:00
SetOperations.h
SetVector.h
SmallBitVector.h Code in LoopStrengthReduce.cpp depends on SmallBitVector::size() being size_t 2014-06-20 12:57:44 +00:00
SmallPtrSet.h Reverting size_type for the containers from size_type to unsigned. 2014-06-20 12:20:56 +00:00
SmallSet.h The count() function for STL datatypes returns unsigned, even where it's 2014-06-20 10:26:56 +00:00
SmallString.h
SmallVector.h SmallVector: support resize(N) with move-only types 2014-06-09 22:26:20 +00:00
SparseBitVector.h Reverting size_type for the containers from size_type to unsigned. 2014-06-20 12:20:56 +00:00
SparseMultiSet.h Reverting size_type for the containers from size_type to unsigned. 2014-06-20 12:20:56 +00:00
SparseSet.h Reverting size_type for the containers from size_type to unsigned. 2014-06-20 12:20:56 +00:00
Statistic.h
STLExtras.h Attempt to placate compilers that warn on casts between pointer-to-object and 2014-05-23 01:22:46 +00:00
StringExtras.h ADT: Surface LowerCase argument for utohexstr 2014-07-14 21:56:54 +00:00
StringMap.h Recommit 211309 (StringMap::insert), reverted in 211328 due to issues with private, but non-deleted, move members. 2014-06-23 18:28:53 +00:00
StringRef.h Make the copy member of StringRef/ArrayRef generic wrt allocators. 2014-04-18 16:36:15 +00:00
StringSet.h
StringSwitch.h
TinyPtrVector.h Add back some typecasts I accidentally lost in r206142. 2014-04-14 01:11:34 +00:00
Triple.h Remove dead code. 2014-07-25 19:06:39 +00:00
Twine.h [ADT] Delete the Twine assignment operator 2014-05-29 17:12:05 +00:00
UniqueVector.h IR: Add COMDATs to the IR 2014-06-27 18:19:56 +00:00
VariadicFunction.h