[llvm] r250268 - [X86] Add XSAVE feature flags to their various processors.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 13 22:37:38 PDT 2015
Author: ctopper
Date: Wed Oct 14 00:37:38 2015
New Revision: 250268
URL: http://llvm.org/viewvc/llvm-project?rev=250268&view=rev
Log:
[X86] Add XSAVE feature flags to their various processors.
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=250268&r1=250267&r2=250268&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86.td (original)
+++ llvm/trunk/lib/Target/X86/X86.td Wed Oct 14 00:37:38 2015
@@ -347,7 +347,9 @@ class SandyBridgeProc<string Name> : Pro
FeatureSlowUAMem32,
FeaturePOPCNT,
FeatureAES,
- FeaturePCLMUL
+ FeaturePCLMUL,
+ FeatureXSAVE,
+ FeatureXSAVEOPT
]>;
def : SandyBridgeProc<"sandybridge">;
def : SandyBridgeProc<"corei7-avx">; // Legacy alias.
@@ -361,6 +363,8 @@ class IvyBridgeProc<string Name> : Proce
FeaturePOPCNT,
FeatureAES,
FeaturePCLMUL,
+ FeatureXSAVE,
+ FeatureXSAVEOPT,
FeatureRDRAND,
FeatureF16C,
FeatureFSGSBase
@@ -377,6 +381,8 @@ class HaswellProc<string Name> : Process
FeatureAES,
FeaturePCLMUL,
FeatureRDRAND,
+ FeatureXSAVE,
+ FeatureXSAVEOPT,
FeatureF16C,
FeatureFSGSBase,
FeatureMOVBE,
@@ -399,6 +405,8 @@ class BroadwellProc<string Name> : Proce
FeaturePOPCNT,
FeatureAES,
FeaturePCLMUL,
+ FeatureXSAVE,
+ FeatureXSAVEOPT,
FeatureRDRAND,
FeatureF16C,
FeatureFSGSBase,
@@ -454,6 +462,8 @@ class SkylakeProc<string Name> : Process
FeaturePOPCNT,
FeatureAES,
FeaturePCLMUL,
+ FeatureXSAVE,
+ FeatureXSAVEOPT,
FeatureRDRAND,
FeatureF16C,
FeatureFSGSBase,
@@ -467,7 +477,9 @@ class SkylakeProc<string Name> : Process
FeatureADX,
FeatureRDSEED,
FeatureSlowIncDec,
- FeatureMPX
+ FeatureMPX,
+ FeatureXSAVEC,
+ FeatureXSAVES
]>;
def : SkylakeProc<"skylake">;
def : SkylakeProc<"skx">; // Legacy alias.
@@ -527,6 +539,7 @@ def : Proc<"btver1", [
FeaturePRFCHW,
FeatureLZCNT,
FeaturePOPCNT,
+ FeatureXSAVE,
FeatureSlowSHLD
]>;
@@ -544,6 +557,8 @@ def : ProcessorModel<"btver2", BtVer2Mod
FeatureMOVBE,
FeatureLZCNT,
FeaturePOPCNT,
+ FeatureXSAVE,
+ FeatureXSAVEOPT,
FeatureSlowSHLD
]>;
@@ -560,6 +575,7 @@ def : Proc<"bdver1", [
FeatureSSE4A,
FeatureLZCNT,
FeaturePOPCNT,
+ FeatureXSAVE,
FeatureSlowSHLD
]>;
// Piledriver
@@ -576,6 +592,7 @@ def : Proc<"bdver2", [
FeatureF16C,
FeatureLZCNT,
FeaturePOPCNT,
+ FeatureXSAVE,
FeatureBMI,
FeatureTBM,
FeatureFMA,
@@ -596,9 +613,11 @@ def : Proc<"bdver3", [
FeatureF16C,
FeatureLZCNT,
FeaturePOPCNT,
+ FeatureXSAVE,
FeatureBMI,
FeatureTBM,
FeatureFMA,
+ FeatureXSAVEOPT,
FeatureSlowSHLD,
FeatureFSGSBase
]>;
@@ -616,11 +635,12 @@ def : Proc<"bdver4", [
FeatureF16C,
FeatureLZCNT,
FeaturePOPCNT,
+ FeatureXSAVE,
FeatureBMI,
FeatureBMI2,
FeatureTBM,
FeatureFMA,
- FeatureSSE4A,
+ FeatureXSAVEOPT,
FeatureFSGSBase
]>;
More information about the llvm-commits
mailing list