From ee3392b1a9e6da4b68c43ed3878035171cb94d89 Mon Sep 17 00:00:00 2001 From: Roman Divacky Date: Wed, 12 Sep 2012 14:36:02 +0000 Subject: [PATCH] Add support for AMD Geode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163710 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Host.cpp | 1 + lib/Target/X86/X86.td | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/Support/Host.cpp b/lib/Support/Host.cpp index 9a2c39d72e3..a13b9e2f87f 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 d078a7b5dfb..def0f16e967 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]>;