diff options
author | Coby Tayree <coby.tayree@intel.com> | 2017-11-26 09:36:41 +0000 |
---|---|---|
committer | Coby Tayree <coby.tayree@intel.com> | 2017-11-26 09:36:41 +0000 |
commit | d8b17bedfacc1678913e5d81c02c6a55282f945d (patch) | |
tree | 8e346ad28fda632a8d4245fae1ceea71908bb397 /llvm/lib/Support/Host.cpp | |
parent | 3fddff51ba2b4d713dad95ca97681f004dc822c9 (diff) | |
download | llvm-d8b17bedfacc1678913e5d81c02c6a55282f945d.zip llvm-d8b17bedfacc1678913e5d81c02c6a55282f945d.tar.gz llvm-d8b17bedfacc1678913e5d81c02c6a55282f945d.tar.bz2 |
[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/Support/Host.cpp')
-rw-r--r-- | llvm/lib/Support/Host.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp index 31f86eb..3ce636f 100644 --- a/llvm/lib/Support/Host.cpp +++ b/llvm/lib/Support/Host.cpp @@ -1217,6 +1217,7 @@ bool sys::getHostCPUFeatures(StringMap<bool> &Features) { Features["avx512vbmi"] = HasLeaf7 && ((ECX >> 1) & 1) && HasAVX512Save; Features["pku"] = HasLeaf7 && ((ECX >> 4) & 1); Features["avx512vbmi2"] = HasLeaf7 && ((ECX >> 6) & 1) && HasAVX512Save; + Features["gfni"] = HasLeaf7 && ((ECX >> 8) & 1); Features["vaes"] = HasLeaf7 && ((ECX >> 9) & 1) && HasAVXSave; Features["vpclmulqdq"] = HasLeaf7 && ((ECX >> 10) & 1) && HasAVXSave; Features["avx512vnni"] = HasLeaf7 && ((ECX >> 11) & 1) && HasAVX512Save; |