[llvm] r187254 - Revert "[PowerPC] Improve consistency in use of __ppc__, __powerpc__, etc."
Rafael Espindola
rafael.espindola at gmail.com
Fri Jul 26 15:13:57 PDT 2013
Author: rafael
Date: Fri Jul 26 17:13:57 2013
New Revision: 187254
URL: http://llvm.org/viewvc/llvm-project?rev=187254&view=rev
Log:
Revert "[PowerPC] Improve consistency in use of __ppc__, __powerpc__, etc."
This reverts commit r187248. It broke many bots.
Modified:
llvm/trunk/lib/Support/Unix/Memory.inc
llvm/trunk/lib/Target/PowerPC/PPCJITInfo.cpp
llvm/trunk/unittests/ADT/BitVectorTest.cpp
llvm/trunk/unittests/ADT/PackedVectorTest.cpp
llvm/trunk/unittests/ExecutionEngine/JIT/MultiJITTest.cpp
Modified: llvm/trunk/lib/Support/Unix/Memory.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Memory.inc?rev=187254&r1=187253&r2=187254&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Memory.inc (original)
+++ llvm/trunk/lib/Support/Unix/Memory.inc Fri Jul 26 17:13:57 2013
@@ -310,14 +310,14 @@ void Memory::InvalidateInstructionCache(
// icache invalidation for PPC and ARM.
#if defined(__APPLE__)
-# if (defined(__POWERPC__) || defined (__ppc__) || defined (__powerpc__) \
+# if (defined(__POWERPC__) || defined (__ppc__) || \
defined(_POWER) || defined(_ARCH_PPC)) || defined(__arm__)
sys_icache_invalidate(const_cast<void *>(Addr), Len);
# endif
#else
-# if (defined(__POWERPC__) || defined (__ppc__) || defined (__powerpc__) || \
+# if (defined(__POWERPC__) || defined (__ppc__) || \
defined(_POWER) || defined(_ARCH_PPC)) && defined(__GNUC__)
const size_t LineSize = 32;
Modified: llvm/trunk/lib/Target/PowerPC/PPCJITInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCJITInfo.cpp?rev=187254&r1=187253&r2=187254&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCJITInfo.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCJITInfo.cpp Fri Jul 26 17:13:57 2013
@@ -71,7 +71,7 @@ static void EmitBranchToAt(uint64_t At,
extern "C" void PPC32CompilationCallback();
extern "C" void PPC64CompilationCallback();
-#if defined(__powerpc64__) || defined(__ppc64__)
+#if (!defined(__ppc__) && !defined(__powerpc__)) || defined(__powerpc64__) || defined(__ppc64__)
void PPC32CompilationCallback() {
llvm_unreachable("This is not a 32bit PowerPC, you can't execute this!");
}
@@ -356,8 +356,8 @@ TargetJITInfo::StubLayout PPCJITInfo::ge
return Result;
}
-#if (defined(__POWERPC__) || defined (__ppc__) || defined(__powerpc__) || \
-defined(_POWER)) && defined(__APPLE__)
+#if (defined(__POWERPC__) || defined (__ppc__) || defined(_POWER)) && \
+defined(__APPLE__)
extern "C" void sys_icache_invalidate(const void *Addr, size_t len);
#endif
Modified: llvm/trunk/unittests/ADT/BitVectorTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/BitVectorTest.cpp?rev=187254&r1=187253&r2=187254&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/BitVectorTest.cpp (original)
+++ llvm/trunk/unittests/ADT/BitVectorTest.cpp Fri Jul 26 17:13:57 2013
@@ -8,7 +8,7 @@
//===----------------------------------------------------------------------===//
// Some of these tests fail on PowerPC for unknown reasons.
-#if !defined(__ppc__) && !defined(__powerpc__)
+#ifndef __ppc__
#include "llvm/ADT/BitVector.h"
#include "llvm/ADT/SmallBitVector.h"
Modified: llvm/trunk/unittests/ADT/PackedVectorTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/PackedVectorTest.cpp?rev=187254&r1=187253&r2=187254&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/PackedVectorTest.cpp (original)
+++ llvm/trunk/unittests/ADT/PackedVectorTest.cpp Fri Jul 26 17:13:57 2013
@@ -9,7 +9,7 @@
// BitVectorTest tests fail on PowerPC for unknown reasons, so disable this
// as well since it depends on a BitVector.
-#if !defined(__ppc__) && !defined(__powerpc__)
+#ifndef __ppc__
#include "llvm/ADT/PackedVector.h"
#include "gtest/gtest.h"
Modified: llvm/trunk/unittests/ExecutionEngine/JIT/MultiJITTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ExecutionEngine/JIT/MultiJITTest.cpp?rev=187254&r1=187253&r2=187254&view=diff
==============================================================================
--- llvm/trunk/unittests/ExecutionEngine/JIT/MultiJITTest.cpp (original)
+++ llvm/trunk/unittests/ExecutionEngine/JIT/MultiJITTest.cpp Fri Jul 26 17:13:57 2013
@@ -21,8 +21,7 @@ using namespace llvm;
namespace {
// ARM, PowerPC and SystemZ tests disabled pending fix for PR10783.
-#if !defined(__arm__) && !defined(__powerpc__) && !defined(__s390__) && \
- !defined(__ppc__)
+#if !defined(__arm__) && !defined(__powerpc__) && !defined(__s390__)
bool LoadAssemblyInto(Module *M, const char *assembly) {
SMDiagnostic Error;
More information about the llvm-commits
mailing list