diff options
author | Coby Tayree <coby.tayree@intel.com> | 2017-11-21 10:32:42 +0000 |
---|---|---|
committer | Coby Tayree <coby.tayree@intel.com> | 2017-11-21 10:32:42 +0000 |
commit | 5c7fe5df5312d02c027531a9121e7ac9e8e01b73 (patch) | |
tree | 03afa62deade26efad51b0224a497f0f5152d49f /llvm/lib/Support | |
parent | c79dfb3b316d45536b9b1a8377fcdbc17fee50ab (diff) | |
download | bcm5719-llvm-5c7fe5df5312d02c027531a9121e7ac9e8e01b73.tar.gz bcm5719-llvm-5c7fe5df5312d02c027531a9121e7ac9e8e01b73.zip |
[x86][icelake]BITALG
vpopcnt{b,w}
Differential Revision: https://reviews.llvm.org/D40213
llvm-svn: 318748
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r-- | llvm/lib/Support/Host.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp index c5436f7e228..d7b1ad911f8 100644 --- a/llvm/lib/Support/Host.cpp +++ b/llvm/lib/Support/Host.cpp @@ -1269,6 +1269,9 @@ bool sys::getHostCPUFeatures(StringMap<bool> &Features) { // Enable Vector Neural Network Instructions Features["avx512vnni"] = HasLeaf7 && ((ECX >> 11) & 1) && HasAVX512Save; + // Enable Bit Algorithms + Features["avx512bitalg"] = HasLeaf7 && ((ECX >> 12) & 1) && HasAVX512Save; + bool HasLeafD = MaxLevel >= 0xd && !getX86CpuIDAndInfoEx(0xd, 0x1, &EAX, &EBX, &ECX, &EDX); |