[PATCH] D16289: Added Cannonlake (CNL) processor type to X86 processors

Elena Demikhovsky via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 18 03:55:08 PST 2016


delena created this revision.
delena added reviewers: igorb, m_zuckerman.
delena added a subscriber: llvm-commits.
delena set the repository for this revision to rL LLVM.

VBMI feature is a part of CNL client.

Repository:
  rL LLVM

http://reviews.llvm.org/D16289

Files:
  ../lib/Target/X86/X86.td

Index: ../lib/Target/X86/X86.td
===================================================================
--- ../lib/Target/X86/X86.td
+++ ../lib/Target/X86/X86.td
@@ -511,7 +511,6 @@
   FeatureLZCNT,
   FeatureBMI,
   FeatureBMI2,
-  FeatureVBMI,
   FeatureFMA,
   FeatureRTM,
   FeatureHLE,
@@ -526,6 +525,43 @@
 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.
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16289.45163.patch
Type: text/x-patch
Size: 1109 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160118/c43ae078/attachment.bin>


More information about the llvm-commits mailing list