[llvm-commits] [llvm] r147846 - in /llvm/trunk/lib: Support/Host.cpp Target/X86/X86.td
Benjamin Kramer
benny.kra at googlemail.com
Tue Jan 10 03:50:02 PST 2012
Author: d0k
Date: Tue Jan 10 05:50:02 2012
New Revision: 147846
URL: http://llvm.org/viewvc/llvm-project?rev=147846&view=rev
Log:
Add definitions for AMD's bobcat (aka btver1)
Modified:
llvm/trunk/lib/Support/Host.cpp
llvm/trunk/lib/Target/X86/X86.td
Modified: llvm/trunk/lib/Support/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Host.cpp?rev=147846&r1=147845&r2=147846&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Host.cpp (original)
+++ llvm/trunk/lib/Support/Host.cpp Tue Jan 10 05:50:02 2012
@@ -298,6 +298,8 @@
}
case 16:
return "amdfam10";
+ case 20:
+ return "btver1";
case 21:
return "bdver1";
default:
Modified: llvm/trunk/lib/Target/X86/X86.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86.td?rev=147846&r1=147845&r2=147846&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86.td (original)
+++ llvm/trunk/lib/Target/X86/X86.td Tue Jan 10 05:50:02 2012
@@ -204,10 +204,15 @@
def : Proc<"amdfam10", [FeatureSSE3, FeatureSSE4A,
Feature3DNowA, FeatureCMPXCHG16B, FeatureLZCNT,
FeaturePOPCNT, FeatureSlowBTMem]>;
+// Bobcat
+def : Proc<"btver1", [FeatureSSSE3, FeatureSSE4A, FeatureCMPXCHG16B,
+ FeatureLZCNT, FeaturePOPCNT]>;
// FIXME: Disabling AVX/FMA4 for now since it's not ready.
+// Bulldozer
def : Proc<"bdver1", [FeatureSSE42, FeatureSSE4A, FeatureCMPXCHG16B,
FeatureAES, FeatureCLMUL,
FeatureXOP, FeatureLZCNT, FeaturePOPCNT]>;
+// Enhanced Bulldozer
def : Proc<"bdver2", [FeatureSSE42, FeatureSSE4A, FeatureCMPXCHG16B,
FeatureAES, FeatureCLMUL,
FeatureXOP, FeatureF16C, FeatureLZCNT,
More information about the llvm-commits
mailing list