llvm-6502/unittests/ADT
Bill Schmidt d063a326b2 [PowerPC] Improve consistency in use of __ppc__, __powerpc__, etc.
Both GCC and LLVM will implicitly define __ppc__ and __powerpc__ for
all PowerPC targets, whether 32- or 64-bit.  They will both implicitly
define __ppc64__ and __powerpc64__ for 64-bit PowerPC targets, and not
for 32-bit targets.  We cannot be sure that all other possible
compilers used to compile Clang/LLVM define both __ppc__ and
__powerpc__, for example, so it is best to check for both when relying
on either inside the Clang/LLVM code base.

This patch makes sure we always check for both variants.  In addition,
it fixes one unnecessary check in lib/Target/PowerPC/PPCJITInfo.cpp.
(At least one of __ppc__ and __powerpc__ should always be defined when
compiling for a PowerPC target, no matter which compiler is used, so
testing for them is unnecessary.)

There are some places in the compiler that check for other variants,
like __POWERPC__ and _POWER, and I have left those in place.  There is
no need to add them elsewhere.  This seems to be in Apple-specific
code, and I won't take a chance on breaking it.

There is no intended change in behavior; thus, no test cases are
added.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187248 91177308-0d34-0410-b5e6-96231b3b80d8
2013-07-26 21:39:15 +00:00
..
APFloatTest.cpp Handle '.' correctly in hex float literal parsing. 2013-07-17 22:17:29 +00:00
APIntTest.cpp [APInt] Implement tcDecrement as a counterpart to tcIncrement. This is for use in APFloat IEEE-754R 2008 nextUp/nextDown function. 2013-05-28 19:50:20 +00:00
BitVectorTest.cpp [PowerPC] Improve consistency in use of __ppc__, __powerpc__, etc. 2013-07-26 21:39:15 +00:00
CMakeLists.txt Allow llvm::Optional to work with types without default constructors. 2013-02-20 00:26:04 +00:00
DAGDeltaAlgorithmTest.cpp Remove some code that is no longer needed now that googletest knows how 2011-07-27 09:26:13 +00:00
DeltaAlgorithmTest.cpp Define the new operator<< for sets into namespace std, so that 2009-12-24 21:11:45 +00:00
DenseMapTest.cpp Fixed bug in SmallDenseMap where it wouldn't leave enough space for an empty bucket if the number of values was exactly equal to the small capacity. This led to an infinite loop when finding a non-existent element 2012-10-23 18:47:35 +00:00
DenseSetTest.cpp Fix includes of llvm files that used angle brackets. 2012-09-15 18:45:38 +00:00
FoldingSet.cpp Add test for PR 8111. By Frits van Bommel. 2010-11-19 23:23:22 +00:00
HashingTest.cpp Fix typos found by http://github.com/lyda/misspell-check 2012-06-02 10:20:22 +00:00
ilistTest.cpp Add an iplist::clearAndLeakNodesUnsafely() function. 2013-01-04 22:35:42 +00:00
ImmutableMapTest.cpp Fix a typo that made ImmutableMap::getMaxElement() useless. 2012-10-14 15:56:39 +00:00
ImmutableSetTest.cpp Tweak ImmutableMap/ImmutableSet/ImmutableList APIs 2010-11-24 00:54:28 +00:00
IntEqClassesTest.cpp Add ADT/IntEqClasses.h as a light-weight implementation of EquivalenceClasses.h. 2010-12-21 00:04:46 +00:00
IntervalMapTest.cpp Add more checks to IntervalMapOverlaps::advance() to ensure that advanceTo sees 2010-12-17 22:07:54 +00:00
IntrusiveRefCntPtrTest.cpp RefCountedBaseVPTR needs the IntrusiveRefCntPtrInfo as friend, 2012-01-31 19:58:34 +00:00
Makefile Move ValueMapTest from ADT to VMCore so that ADT doesn't need 2010-09-27 15:50:08 +00:00
MapVectorTest.cpp Remove my bogus MapVector::erase() with a narrower ::pop_back(), and add a unit test. 2013-02-19 18:26:07 +00:00
OptionalTest.cpp Only include move-related Optional<T> tests when rvalue references are available. 2013-02-21 07:58:45 +00:00
PackedVectorTest.cpp [PowerPC] Improve consistency in use of __ppc__, __powerpc__, etc. 2013-07-26 21:39:15 +00:00
SCCIteratorTest.cpp Sort the #include lines for unittest/... 2012-12-04 10:23:08 +00:00
SmallPtrSetTest.cpp SmallVector and SmallPtrSet allocations now power-of-two aligned. 2013-03-29 22:07:12 +00:00
SmallStringTest.cpp Sort the #include lines for unittest/... 2012-12-04 10:23:08 +00:00
SmallVectorTest.cpp Sort the #include lines for unittest/... 2012-12-04 10:23:08 +00:00
SparseBitVectorTest.cpp
SparseMultiSetTest.cpp ADT/SparseMultiSetTest.cpp: Try to appease cygwin-clang on stage2, take two. [-Wsign-compare] 2013-01-22 10:39:31 +00:00
SparseSetTest.cpp SparseSet: Add support for key-derived indexes and arbitrary key types. 2012-04-20 20:05:28 +00:00
StringMapTest.cpp Fix PR13148, an inf-loop in StringMap. 2012-06-19 17:40:35 +00:00
StringRefTest.cpp Sort the #include lines for unittest/... 2012-12-04 10:23:08 +00:00
TinyPtrVectorTest.cpp Sort the #include lines for unittest/... 2012-12-04 10:23:08 +00:00
TripleTest.cpp Added a unit test for r173983 that verifies that Target.isiOS() works correctly. 2013-01-30 23:48:13 +00:00
TwineTest.cpp Sort the #include lines for unittest/... 2012-12-04 10:23:08 +00:00
VariadicFunctionTest.cpp As Doug pointed out (and I really should know), it is perfectly easy to 2011-12-17 10:20:15 +00:00