[llvm] r258046 - Added Cannonlake processor to X86 Target
Elena Demikhovsky via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 18 05:00:34 PST 2016
Author: delena
Date: Mon Jan 18 07:00:31 2016
New Revision: 258046
URL: http://llvm.org/viewvc/llvm-project?rev=258046&view=rev
Log:
Added Cannonlake processor to X86 Target
Differential Revision: http://reviews.llvm.org/D16289
Modified:
llvm/trunk/lib/Target/X86/X86.td
Modified: llvm/trunk/lib/Target/X86/X86.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86.td?rev=258046&r1=258045&r2=258046&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86.td (original)
+++ llvm/trunk/lib/Target/X86/X86.td Mon Jan 18 07:00:31 2016
@@ -511,7 +511,6 @@ class SkylakeProc<string Name> : Process
FeatureLZCNT,
FeatureBMI,
FeatureBMI2,
- FeatureVBMI,
FeatureFMA,
FeatureRTM,
FeatureHLE,
@@ -526,6 +525,43 @@ class SkylakeProc<string Name> : Process
def : SkylakeProc<"skylake">;
def : SkylakeProc<"skx">; // Legacy alias.
+class CannonlakeProc<string Name> : ProcessorModel<Name, HaswellModel, [
+ FeatureMMX,
+ FeatureAVX512,
+ FeatureFXSR,
+ FeatureCDI,
+ FeatureDQI,
+ FeatureBWI,
+ FeatureVLX,
+ FeaturePKU,
+ FeatureCMPXCHG16B,
+ FeatureSlowBTMem,
+ FeaturePOPCNT,
+ FeatureAES,
+ FeaturePCLMUL,
+ FeatureXSAVE,
+ FeatureXSAVEOPT,
+ FeatureRDRAND,
+ FeatureF16C,
+ FeatureFSGSBase,
+ FeatureMOVBE,
+ FeatureLZCNT,
+ FeatureBMI,
+ FeatureBMI2,
+ FeatureVBMI,
+ FeatureFMA,
+ FeatureRTM,
+ FeatureHLE,
+ FeatureADX,
+ FeatureRDSEED,
+ FeatureSlowIncDec,
+ FeatureMPX,
+ FeatureXSAVEC,
+ FeatureXSAVES,
+ FeatureLAHFSAHF
+]>;
+def : CannonlakeProc<"cannonlake">;
+def : CannonlakeProc<"cnl">;
// AMD CPUs.
More information about the llvm-commits
mailing list