r207624 - [ARM64] Add arm64_be where it was accidentally missed from a bunch of if-conditions.
James Molloy
james.molloy at arm.com
Wed Apr 30 03:11:40 PDT 2014
Author: jamesm
Date: Wed Apr 30 05:11:40 2014
New Revision: 207624
URL: http://llvm.org/viewvc/llvm-project?rev=207624&view=rev
Log:
[ARM64] Add arm64_be where it was accidentally missed from a bunch of if-conditions.
I think this is the last commit for ARM64 big endian in clang. This commit makes
arm_neon.h compile correctly.
Modified:
cfe/trunk/lib/AST/ItaniumMangle.cpp
cfe/trunk/lib/CodeGen/CGBuiltin.cpp
cfe/trunk/lib/Sema/SemaChecking.cpp
cfe/trunk/lib/Sema/SemaType.cpp
Modified: cfe/trunk/lib/AST/ItaniumMangle.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ItaniumMangle.cpp?rev=207624&r1=207623&r2=207624&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ItaniumMangle.cpp (original)
+++ cfe/trunk/lib/AST/ItaniumMangle.cpp Wed Apr 30 05:11:40 2014
@@ -2298,6 +2298,7 @@ void CXXNameMangler::mangleType(const Ve
getASTContext().getTargetInfo().getTriple().getArch();
if (Arch == llvm::Triple::aarch64 ||
Arch == llvm::Triple::aarch64_be ||
+ Arch == llvm::Triple::arm64_be ||
(Arch == llvm::Triple::arm64 && !Target.isOSDarwin()))
mangleAArch64NeonVectorType(T);
else
Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBuiltin.cpp?rev=207624&r1=207623&r2=207624&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGBuiltin.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBuiltin.cpp Wed Apr 30 05:11:40 2014
@@ -1646,6 +1646,7 @@ Value *CodeGenFunction::EmitTargetBuilti
case llvm::Triple::thumbeb:
return EmitARMBuiltinExpr(BuiltinID, E);
case llvm::Triple::arm64:
+ case llvm::Triple::arm64_be:
return EmitARM64BuiltinExpr(BuiltinID, E);
case llvm::Triple::x86:
case llvm::Triple::x86_64:
Modified: cfe/trunk/lib/Sema/SemaChecking.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaChecking.cpp?rev=207624&r1=207623&r2=207624&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaChecking.cpp (original)
+++ cfe/trunk/lib/Sema/SemaChecking.cpp Wed Apr 30 05:11:40 2014
@@ -310,6 +310,7 @@ Sema::CheckBuiltinFunctionCall(unsigned
return ExprError();
break;
case llvm::Triple::arm64:
+ case llvm::Triple::arm64_be:
if (CheckARM64BuiltinFunctionCall(BuiltinID, TheCall))
return ExprError();
break;
Modified: cfe/trunk/lib/Sema/SemaType.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaType.cpp?rev=207624&r1=207623&r2=207624&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaType.cpp (original)
+++ cfe/trunk/lib/Sema/SemaType.cpp Wed Apr 30 05:11:40 2014
@@ -4731,7 +4731,8 @@ static bool isPermittedNeonBaseType(Qual
// now.
bool IsPolyUnsigned = Triple.getArch() == llvm::Triple::aarch64 ||
Triple.getArch() == llvm::Triple::aarch64_be ||
- Triple.getArch() == llvm::Triple::arm64;
+ Triple.getArch() == llvm::Triple::arm64 ||
+ Triple.getArch() == llvm::Triple::arm64_be;
if (VecKind == VectorType::NeonPolyVector) {
if (IsPolyUnsigned) {
// AArch64 polynomial vectors are unsigned and support poly64.
@@ -4750,7 +4751,8 @@ static bool isPermittedNeonBaseType(Qual
// float64_t on AArch64.
bool Is64Bit = Triple.getArch() == llvm::Triple::aarch64 ||
Triple.getArch() == llvm::Triple::aarch64_be ||
- Triple.getArch() == llvm::Triple::arm64;
+ Triple.getArch() == llvm::Triple::arm64 ||
+ Triple.getArch() == llvm::Triple::arm64_be;
if (Is64Bit && BTy->getKind() == BuiltinType::Double)
return true;
More information about the cfe-commits
mailing list