aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@freebsd.org>2012-09-12 14:36:02 +0000
committerRoman Divacky <rdivacky@freebsd.org>2012-09-12 14:36:02 +0000
commitee3392b1a9e6da4b68c43ed3878035171cb94d89 (patch)
tree09dccde22e22e0d92410c3f80bb8d7b21f0ed483 /lib
parent789efbad2a7b2c7693a3aee7b6d08806c361538f (diff)
Add support for AMD Geode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163710 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Support/Host.cpp1
-rw-r--r--lib/Target/X86/X86.td1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/Support/Host.cpp b/lib/Support/Host.cpp
index 9a2c39d72e..a13b9e2f87 100644
--- a/lib/Support/Host.cpp
+++ b/lib/Support/Host.cpp
@@ -303,6 +303,7 @@ std::string sys::getHostCPUName() {
case 8: return "k6-2";
case 9:
case 13: return "k6-3";
+ case 10: return "geode";
default: return "pentium";
}
case 6:
diff --git a/lib/Target/X86/X86.td b/lib/Target/X86/X86.td
index d078a7b5df..def0f16e96 100644
--- a/lib/Target/X86/X86.td
+++ b/lib/Target/X86/X86.td
@@ -231,6 +231,7 @@ def : Proc<"bdver2", [FeatureXOP, FeatureFMA4, FeatureCMPXCHG16B,
FeatureAES, FeaturePCLMUL,
FeatureF16C, FeatureLZCNT,
FeaturePOPCNT, FeatureBMI, FeatureFMA]>;
+def : Proc<"geode", [Feature3DNowA]>;
def : Proc<"winchip-c6", [FeatureMMX]>;
def : Proc<"winchip2", [Feature3DNow]>;