1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-25 05:52:53 +02:00
llvm-mirror/include/llvm/ADT
Michael Gottesman b04f462e22 Fix PointerIntPair so that it can use an enum class as its integer template argument.
Summary:
The problem here is that an enum class can not be implicitly converted to an
integer. That assumption snuck back into PointerIntPair. This commit fixes the
issue and more importantly adds some unittests to make sure that we do not break
this again.

rdar://23594806

Reviewers: gribozavr

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D16131

llvm-svn: 257574
2016-01-13 05:59:13 +00:00
..
APFloat.h Add isInteger() to APFloat. 2015-11-16 21:52:48 +00:00
APInt.h Fix APInt value initialization to give a zero value as any sane integer type 2015-09-04 04:08:36 +00:00
APSInt.h Reformat headers in ADT and Support partially. 2015-08-10 04:22:36 +00:00
ArrayRef.h Add hashing and DenseMapInfo for ArrayRef 2015-10-18 14:04:56 +00:00
BitVector.h [ADT] Make capacity_in_bytes support BitVector. NFC. 2015-11-16 04:02:36 +00:00
DAGDeltaAlgorithm.h
DeltaAlgorithm.h Whitespace. 2015-08-10 04:22:09 +00:00
DenseMap.h DenseMap: we're trying to call the reserved global placement allocation 2015-10-02 00:46:33 +00:00
DenseMapInfo.h Add hashing and DenseMapInfo for ArrayRef 2015-10-18 14:04:56 +00:00
DenseSet.h Whitespace. 2015-08-10 04:22:09 +00:00
DepthFirstIterator.h Reformat headers in ADT and Support partially. 2015-08-10 04:22:36 +00:00
edit_distance.h
EpochTracker.h
EquivalenceClasses.h
FoldingSet.h [ADT] Teach FoldingSet to be movable. 2015-08-16 23:17:27 +00:00
GraphTraits.h
Hashing.h
ilist_node.h ADT: Avoid relying on UB in ilist_node::getNextNode() 2015-11-11 02:26:42 +00:00
ilist.h ADT: Avoid relying on UB in ilist_node::getNextNode() 2015-11-11 02:26:42 +00:00
ImmutableList.h Fix Clang-tidy modernize-use-nullptr warnings in examples and include directories; other minor cleanups. 2015-09-29 18:02:48 +00:00
ImmutableMap.h Fix Clang-tidy modernize-use-nullptr warnings in examples and include directories; other minor cleanups. 2015-09-29 18:02:48 +00:00
ImmutableSet.h
IndexedMap.h
IntEqClasses.h IntEqClasses: Let join() return the new leader 2016-01-08 01:16:39 +00:00
IntervalMap.h
IntrusiveRefCntPtr.h Fix Clang-tidy modernize-use-nullptr warnings in examples and include directories; other minor cleanups. 2015-09-29 18:02:48 +00:00
iterator_range.h Remove iterator_range::end. 2015-09-24 00:23:07 +00:00
iterator.h
MapVector.h
None.h
Optional.h Allow Optionals to be compared to None 2015-08-19 23:07:27 +00:00
PackedVector.h Simplify PackedVector by removing user-defined special members that aren't any different than the defaults 2015-08-12 23:26:12 +00:00
PointerEmbeddedInt.h [ADT] Another stab at fixing the PointerEmbeddedInt build for MSVC. 2016-01-10 14:27:26 +00:00
PointerIntPair.h Fix PointerIntPair so that it can use an enum class as its integer template argument. 2016-01-13 05:59:13 +00:00
PointerSumType.h [ADT] Add a sum type abstraction for pointer-like types. 2016-01-10 08:48:23 +00:00
PointerUnion.h [ADT] Run clang-format over PointerUnion.h and clean up its comments. 2015-12-28 19:52:46 +00:00
PostOrderIterator.h Remove unnecessary argument in ipo iterator 2015-10-13 07:26:04 +00:00
PriorityQueue.h
SCCIterator.h
ScopedHashTable.h Fix missing C++ mode comment 2015-09-21 15:59:41 +00:00
SetOperations.h [SimplifyCFG] Merge conditional stores 2015-11-04 15:28:04 +00:00
SetVector.h Avoid undefined behavior when vector is empty. 2015-12-10 16:35:06 +00:00
SmallBitVector.h Simplify SmallBitVector::applyMask by consolidating common code for 32- and 64-bit builds 2015-09-18 15:08:24 +00:00
SmallPtrSet.h Reformat headers in ADT and Support partially. 2015-08-10 04:22:36 +00:00
SmallSet.h Whitespace. 2015-08-10 04:22:09 +00:00
SmallString.h
SmallVector.h [ADT] Force inline several super boring and unusually hot methods on 2015-09-10 09:46:47 +00:00
SparseBitVector.h Fix Clang-tidy modernize-use-nullptr warnings in examples and include directories; other minor cleanups. 2015-09-29 18:02:48 +00:00
SparseMultiSet.h
SparseSet.h
Statistic.h Simplify memory management with std::unique_ptr. 2015-12-16 22:28:34 +00:00
STLExtras.h Introduce a range version of std::find, and use in SCEV 2015-12-01 07:49:27 +00:00
StringExtras.h
StringMap.h [llvm-dwp] Initial partial prototype 2015-12-01 00:48:39 +00:00
StringRef.h [ADT] Remove a couple of the always inline attributes I added. 2015-09-21 18:02:24 +00:00
StringSet.h [llvm-dwp] Initial partial prototype 2015-12-01 00:48:39 +00:00
StringSwitch.h [ADT] Micro-optimize and force inlining for string switches. 2015-09-10 09:25:59 +00:00
TinyPtrVector.h Whitespace. 2015-08-10 04:22:09 +00:00
Triple.h [ARM] Add ARMv8.2-A to TargetParser 2015-12-01 10:33:56 +00:00
Twine.h [ADT] Remove 'reinterpreted as a pointer' from some Twine comments. Integers have been stored directly in a union for some time. NFC 2016-01-10 08:27:13 +00:00
UniqueVector.h Fix ADT/UniqueVector.h to resolve implicit dependency. 2015-10-24 00:27:22 +00:00
VariadicFunction.h