1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-30 23:42:52 +01:00
llvm-mirror/unittests/ExecutionEngine/JIT
Bill Schmidt 149eda1b1e [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.

llvm-svn: 187248
2013-07-26 21:39:15 +00:00
..
CMakeLists.txt Explicitly add -Wl,--export-all-symbols on mingw/cygwin. 2013-04-04 01:19:55 +00:00
IntelJITEventListenerTest.cpp Removing dependency on third party library for Intel JIT event support. 2012-09-28 17:35:20 +00:00
JITEventListenerTest.cpp [SystemZ] Set up JIT/MCJIT test cases 2013-05-06 16:21:50 +00:00
JITEventListenerTestCommon.h Move all of the header files which are involved in modelling the LLVM IR 2013-01-02 11:36:10 +00:00
JITMemoryManagerTest.cpp Fix -Wsign-compare warning and remove windows-style line endings introduced by r185421 2013-07-02 16:48:10 +00:00
JITTest.cpp Alternative fix for problem addressed in r182233 2013-05-21 10:30:59 +00:00
JITTests.def unittests/CMakeLists.txt: [PR8225] Tweak linking JITTests on MSVC to add JITTests.def. 2010-11-19 03:19:42 +00:00
Makefile Add support for source and line information to IntelJITEventListener for object emitted by MCJIT. 2013-01-28 19:52:37 +00:00
MultiJITTest.cpp [PowerPC] Improve consistency in use of __ppc__, __powerpc__, etc. 2013-07-26 21:39:15 +00:00
OProfileJITEventListenerTest.cpp Sort the #include lines for unittest/... 2012-12-04 10:23:08 +00:00