summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-05-20 15:11:26 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-05-20 15:11:26 +0000
commiteb274e6bdda7a8868534a70dcd4799ee93d76b17 (patch)
treea9ebbc0210719a84114fcba083907641c7356dbb /lib
parent6e35e4c8c1d99318c11e5b30d4530e6b199ccfab (diff)
downloadllvm-eb274e6bdda7a8868534a70dcd4799ee93d76b17.tar.gz
llvm-eb274e6bdda7a8868534a70dcd4799ee93d76b17.tar.bz2
llvm-eb274e6bdda7a8868534a70dcd4799ee93d76b17.tar.xz
Rename the "sandybridge" subtarget to "corei7-avx", for GCC compatibility.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131730 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Support/Host.cpp2
-rw-r--r--lib/Target/X86/X86.td2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/Host.cpp b/lib/Support/Host.cpp
index 911c64acce..5d1ad92e23 100644
--- a/lib/Support/Host.cpp
+++ b/lib/Support/Host.cpp
@@ -215,7 +215,7 @@ std::string sys::getHostCPUName() {
case 37: // Intel Core i7, laptop version.
return "corei7";
case 42: // SandyBridge
- return "sandybridge";
+ return "corei7-avx";
case 28: // Intel Atom processor. All processors are manufactured using
// the 45 nm process
diff --git a/lib/Target/X86/X86.td b/lib/Target/X86/X86.td
index f9fd4eb83d..7bb96766cc 100644
--- a/lib/Target/X86/X86.td
+++ b/lib/Target/X86/X86.td
@@ -124,7 +124,7 @@ def : Proc<"westmere", [FeatureSSE42, Feature64Bit, FeatureSlowBTMem,
// SSE is not listed here since llvm treats AVX as a reimplementation of SSE,
// rather than a superset.
// FIXME: Disabling AVX for now since it's not ready.
-def : Proc<"sandybridge", [FeatureSSE42, Feature64Bit,
+def : Proc<"corei7-avx", [FeatureSSE42, Feature64Bit,
FeatureAES, FeatureCLMUL]>;
def : Proc<"k6", [FeatureMMX]>;