]> granicus.if.org Git - llvm/commitdiff
[X86] Add 'mpx' to getHostCPUFeatures.
authorCraig Topper <craig.topper@intel.com>
Wed, 13 Feb 2019 20:12:41 +0000 (20:12 +0000)
committerCraig Topper <craig.topper@intel.com>
Wed, 13 Feb 2019 20:12:41 +0000 (20:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353974 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Host.cpp

index 367fd188a1fae33ee898ab5c2cb3505175887cd0..35bc97222410963c0cefd691f8ddb31a5865b3d1 100644 (file)
@@ -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;