llvm.org GIT mirror llvm / 496cf23
Revert "[PowerPC] Improve consistency in use of __ppc__, __powerpc__, etc." This reverts commit r187248. It broke many bots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187254 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 6 years ago
5 changed file(s) with 8 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
309309 // icache invalidation for PPC and ARM.
310310 #if defined(__APPLE__)
311311
312 # if (defined(__POWERPC__) || defined (__ppc__) || defined (__powerpc__) \
312 # if (defined(__POWERPC__) || defined (__ppc__) || \
313313 defined(_POWER) || defined(_ARCH_PPC)) || defined(__arm__)
314314 sys_icache_invalidate(const_cast(Addr), Len);
315315 # endif
316316
317317 #else
318318
319 # if (defined(__POWERPC__) || defined (__ppc__) || defined (__powerpc__) || \
319 # if (defined(__POWERPC__) || defined (__ppc__) || \
320320 defined(_POWER) || defined(_ARCH_PPC)) && defined(__GNUC__)
321321 const size_t LineSize = 32;
322322
7070 extern "C" void PPC32CompilationCallback();
7171 extern "C" void PPC64CompilationCallback();
7272
73 #if defined(__powerpc64__) || defined(__ppc64__)
73 #if (!defined(__ppc__) && !defined(__powerpc__)) || defined(__powerpc64__) || defined(__ppc64__)
7474 void PPC32CompilationCallback() {
7575 llvm_unreachable("This is not a 32bit PowerPC, you can't execute this!");
7676 }
355355 return Result;
356356 }
357357
358 #if (defined(__POWERPC__) || defined (__ppc__) || defined(__powerpc__) || \
359 defined(_POWER)) && defined(__APPLE__)
358 #if (defined(__POWERPC__) || defined (__ppc__) || defined(_POWER)) && \
359 defined(__APPLE__)
360360 extern "C" void sys_icache_invalidate(const void *Addr, size_t len);
361361 #endif
362362
77 //===----------------------------------------------------------------------===//
88
99 // Some of these tests fail on PowerPC for unknown reasons.
10 #if !defined(__ppc__) && !defined(__powerpc__)
10 #ifndef __ppc__
1111
1212 #include "llvm/ADT/BitVector.h"
1313 #include "llvm/ADT/SmallBitVector.h"
88
99 // BitVectorTest tests fail on PowerPC for unknown reasons, so disable this
1010 // as well since it depends on a BitVector.
11 #if !defined(__ppc__) && !defined(__powerpc__)
11 #ifndef __ppc__
1212
1313 #include "llvm/ADT/PackedVector.h"
1414 #include "gtest/gtest.h"
2020 namespace {
2121
2222 // ARM, PowerPC and SystemZ tests disabled pending fix for PR10783.
23 #if !defined(__arm__) && !defined(__powerpc__) && !defined(__s390__) && \
24 !defined(__ppc__)
23 #if !defined(__arm__) && !defined(__powerpc__) && !defined(__s390__)
2524
2625 bool LoadAssemblyInto(Module *M, const char *assembly) {
2726 SMDiagnostic Error;