summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86.td
diff options
context:
space:
mode:
authorCoby Tayree <coby.tayree@intel.com>2017-11-26 09:36:41 +0000
committerCoby Tayree <coby.tayree@intel.com>2017-11-26 09:36:41 +0000
commitd8b17bedfacc1678913e5d81c02c6a55282f945d (patch)
tree8e346ad28fda632a8d4245fae1ceea71908bb397 /llvm/lib/Target/X86/X86.td
parent3fddff51ba2b4d713dad95ca97681f004dc822c9 (diff)
downloadbcm5719-llvm-d8b17bedfacc1678913e5d81c02c6a55282f945d.tar.gz
bcm5719-llvm-d8b17bedfacc1678913e5d81c02c6a55282f945d.zip
[x86][icelake]GFNI
galois field arithmetic (GF(2^8)) insns: gf2p8affineinvqb gf2p8affineqb gf2p8mulb Differential Revision: https://reviews.llvm.org/D40373 llvm-svn: 318993
Diffstat (limited to 'llvm/lib/Target/X86/X86.td')
-rw-r--r--llvm/lib/Target/X86/X86.td7
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/lib/Target/X86/X86.td b/llvm/lib/Target/X86/X86.td
index 56a6d57c195..8c1136341de 100644
--- a/llvm/lib/Target/X86/X86.td
+++ b/llvm/lib/Target/X86/X86.td
@@ -169,6 +169,9 @@ def FeatureBITALG : SubtargetFeature<"avx512bitalg", "HasBITALG", "true",
def FeaturePCLMUL : SubtargetFeature<"pclmul", "HasPCLMUL", "true",
"Enable packed carry-less multiplication instructions",
[FeatureSSE2]>;
+def FeatureGFNI : SubtargetFeature<"gfni", "HasGFNI", "true",
+ "Enable Galois Field Arithmetic Instructions",
+ [FeatureSSE2]>;
def FeatureVPCLMULQDQ : SubtargetFeature<"vpclmulqdq", "HasVPCLMULQDQ", "true",
"Enable vpclmulqdq instructions",
[FeatureAVX, FeaturePCLMUL]>;
@@ -698,8 +701,8 @@ def ICLFeatures : ProcessorFeatures<CNLFeatures.Value, [
FeatureVBMI2,
FeatureVNNI,
FeatureVPCLMULQDQ,
- FeatureVPOPCNTDQ
- // TODO: Add GFNI when it is implemented.
+ FeatureVPOPCNTDQ,
+ FeatureGFNI
]>;
class IcelakeProc<string Name> : ProcModel<Name, SkylakeServerModel,
OpenPOWER on IntegriCloud