summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2019-02-13 20:12:41 +0000
committerCraig Topper <craig.topper@intel.com>2019-02-13 20:12:41 +0000
commitfa533f21523485f8e6f7d21a552fa5ca1128d46d (patch)
treebc8b52255acf1a26d226a03ef84c30627e4a3890 /llvm
parent4b0cc9a7c80ff44ff63f87305c775186a6360497 (diff)
downloadbcm5719-llvm-fa533f21523485f8e6f7d21a552fa5ca1128d46d.tar.gz
bcm5719-llvm-fa533f21523485f8e6f7d21a552fa5ca1128d46d.zip
[X86] Add 'mpx' to getHostCPUFeatures.
llvm-svn: 353974
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Support/Host.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp
index 367fd188a1f..35bc9722241 100644
--- a/llvm/lib/Support/Host.cpp
+++ b/llvm/lib/Support/Host.cpp
@@ -1323,6 +1323,7 @@ bool sys::getHostCPUFeatures(StringMap<bool> &Features) {
Features["bmi2"] = HasLeaf7 && ((EBX >> 8) & 1);
Features["invpcid"] = HasLeaf7 && ((EBX >> 10) & 1);
Features["rtm"] = HasLeaf7 && ((EBX >> 11) & 1);
+ Features["mpx"] = HasLeaf7 && ((EBX >> 14) & 1);
// AVX512 is only supported if the OS supports the context save for it.
Features["avx512f"] = HasLeaf7 && ((EBX >> 16) & 1) && HasAVX512Save;
Features["avx512dq"] = HasLeaf7 && ((EBX >> 17) & 1) && HasAVX512Save;
OpenPOWER on IntegriCloud