mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
Revert "[PowerPC] Improve consistency in use of __ppc__, __powerpc__, etc."
This reverts commit r187248. It broke many bots. llvm-svn: 187254
This commit is contained in:
parent
e7a1434407
commit
326babb234
@ -310,14 +310,14 @@ void Memory::InvalidateInstructionCache(const void *Addr,
|
|||||||
// icache invalidation for PPC and ARM.
|
// icache invalidation for PPC and ARM.
|
||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
|
|
||||||
# if (defined(__POWERPC__) || defined (__ppc__) || defined (__powerpc__) \
|
# if (defined(__POWERPC__) || defined (__ppc__) || \
|
||||||
defined(_POWER) || defined(_ARCH_PPC)) || defined(__arm__)
|
defined(_POWER) || defined(_ARCH_PPC)) || defined(__arm__)
|
||||||
sys_icache_invalidate(const_cast<void *>(Addr), Len);
|
sys_icache_invalidate(const_cast<void *>(Addr), Len);
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
# if (defined(__POWERPC__) || defined (__ppc__) || defined (__powerpc__) || \
|
# if (defined(__POWERPC__) || defined (__ppc__) || \
|
||||||
defined(_POWER) || defined(_ARCH_PPC)) && defined(__GNUC__)
|
defined(_POWER) || defined(_ARCH_PPC)) && defined(__GNUC__)
|
||||||
const size_t LineSize = 32;
|
const size_t LineSize = 32;
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ static void EmitBranchToAt(uint64_t At, uint64_t To, bool isCall, bool is64Bit){
|
|||||||
extern "C" void PPC32CompilationCallback();
|
extern "C" void PPC32CompilationCallback();
|
||||||
extern "C" void PPC64CompilationCallback();
|
extern "C" void PPC64CompilationCallback();
|
||||||
|
|
||||||
#if defined(__powerpc64__) || defined(__ppc64__)
|
#if (!defined(__ppc__) && !defined(__powerpc__)) || defined(__powerpc64__) || defined(__ppc64__)
|
||||||
void PPC32CompilationCallback() {
|
void PPC32CompilationCallback() {
|
||||||
llvm_unreachable("This is not a 32bit PowerPC, you can't execute this!");
|
llvm_unreachable("This is not a 32bit PowerPC, you can't execute this!");
|
||||||
}
|
}
|
||||||
@ -356,8 +356,8 @@ TargetJITInfo::StubLayout PPCJITInfo::getStubLayout() {
|
|||||||
return Result;
|
return Result;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if (defined(__POWERPC__) || defined (__ppc__) || defined(__powerpc__) || \
|
#if (defined(__POWERPC__) || defined (__ppc__) || defined(_POWER)) && \
|
||||||
defined(_POWER)) && defined(__APPLE__)
|
defined(__APPLE__)
|
||||||
extern "C" void sys_icache_invalidate(const void *Addr, size_t len);
|
extern "C" void sys_icache_invalidate(const void *Addr, size_t len);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
// Some of these tests fail on PowerPC for unknown reasons.
|
// 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/BitVector.h"
|
||||||
#include "llvm/ADT/SmallBitVector.h"
|
#include "llvm/ADT/SmallBitVector.h"
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
// BitVectorTest tests fail on PowerPC for unknown reasons, so disable this
|
// BitVectorTest tests fail on PowerPC for unknown reasons, so disable this
|
||||||
// as well since it depends on a BitVector.
|
// as well since it depends on a BitVector.
|
||||||
#if !defined(__ppc__) && !defined(__powerpc__)
|
#ifndef __ppc__
|
||||||
|
|
||||||
#include "llvm/ADT/PackedVector.h"
|
#include "llvm/ADT/PackedVector.h"
|
||||||
#include "gtest/gtest.h"
|
#include "gtest/gtest.h"
|
||||||
|
@ -21,8 +21,7 @@ using namespace llvm;
|
|||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
// ARM, PowerPC and SystemZ tests disabled pending fix for PR10783.
|
// ARM, PowerPC and SystemZ tests disabled pending fix for PR10783.
|
||||||
#if !defined(__arm__) && !defined(__powerpc__) && !defined(__s390__) && \
|
#if !defined(__arm__) && !defined(__powerpc__) && !defined(__s390__)
|
||||||
!defined(__ppc__)
|
|
||||||
|
|
||||||
bool LoadAssemblyInto(Module *M, const char *assembly) {
|
bool LoadAssemblyInto(Module *M, const char *assembly) {
|
||||||
SMDiagnostic Error;
|
SMDiagnostic Error;
|
||||||
|
Loading…
Reference in New Issue
Block a user