summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorCoby Tayree <coby.tayree@intel.com>2017-11-21 10:32:42 +0000
committerCoby Tayree <coby.tayree@intel.com>2017-11-21 10:32:42 +0000
commit5c7fe5df5312d02c027531a9121e7ac9e8e01b73 (patch)
tree03afa62deade26efad51b0224a497f0f5152d49f /llvm/lib/Support
parentc79dfb3b316d45536b9b1a8377fcdbc17fee50ab (diff)
downloadbcm5719-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.cpp3
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);
OpenPOWER on IntegriCloud