From: Craig Topper Date: Wed, 13 Feb 2019 20:12:41 +0000 (+0000) Subject: [X86] Add 'mpx' to getHostCPUFeatures. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=21b311090c4f2eb5e6517c4a840d3676c298f076;p=llvm [X86] Add 'mpx' to getHostCPUFeatures. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353974 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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 &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;