[PATCH] D14757: Handle ARMv7K as an alias, instead of fake architecture (NFC)
A. Skrobov via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 18 09:09:16 PST 2015
tyomitch updated this revision to Diff 40525.
tyomitch added a comment.
Thanks Renato, I see your point.
How about this?
http://reviews.llvm.org/D14757
Files:
include/llvm/Support/ARMTargetParser.def
lib/Support/Triple.cpp
Index: lib/Support/Triple.cpp
===================================================================
--- lib/Support/Triple.cpp
+++ lib/Support/Triple.cpp
@@ -1370,6 +1370,14 @@
case llvm::Triple::Win32:
// FIXME: this is invalid for WindowsCE
return "cortex-a9";
+ case llvm::Triple::MacOSX:
+ case llvm::Triple::IOS:
+ if (MArch != "v7k")
+ break;
+ // fall through
+ case llvm::Triple::TvOS:
+ case llvm::Triple::WatchOS:
+ return "cortex-a7";
default:
break;
}
Index: include/llvm/Support/ARMTargetParser.def
===================================================================
--- include/llvm/Support/ARMTargetParser.def
+++ include/llvm/Support/ARMTargetParser.def
@@ -212,7 +212,6 @@
ARM_CPU_NAME("xscale", AK_XSCALE, FK_NONE, true, AEK_NONE)
ARM_CPU_NAME("swift", AK_ARMV7S, FK_NEON_VFPV4, true,
(AEK_HWDIVARM | AEK_HWDIV))
-ARM_CPU_NAME("cortex-a7", AK_ARMV7K, FK_NONE, true, AEK_HWDIVARM | AEK_HWDIV)
// Invalid CPU
ARM_CPU_NAME("invalid", AK_INVALID, FK_INVALID, true, AEK_INVALID)
#undef ARM_CPU_NAME
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14757.40525.patch
Type: text/x-patch
Size: 1071 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151118/0563f2ec/attachment.bin>
More information about the llvm-commits
mailing list