aboutsummaryrefslogtreecommitdiff
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
commit21b311090c4f2eb5e6517c4a840d3676c298f076 (patch)
tree8fe12f7abaf4887fcfedb6dbfe8b860c472b1a07
parent18afa443d99c507dd60294f975510b2138a15813 (diff)
downloadllvm-21b311090c4f2eb5e6517c4a840d3676c298f076.tar.gz
[X86] Add 'mpx' to getHostCPUFeatures.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353974 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Support/Host.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Support/Host.cpp b/lib/Support/Host.cpp
index 367fd188a1f..35bc9722241 100644
--- a/lib/Support/Host.cpp
+++ b/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;