[llvm] r353974 - [X86] Add 'mpx' to getHostCPUFeatures.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 13 12:12:41 PST 2019
Author: ctopper
Date: Wed Feb 13 12:12:41 2019
New Revision: 353974
URL: http://llvm.org/viewvc/llvm-project?rev=353974&view=rev
Log:
[X86] Add 'mpx' to getHostCPUFeatures.
Modified:
llvm/trunk/lib/Support/Host.cpp
Modified: llvm/trunk/lib/Support/Host.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Host.cpp?rev=353974&r1=353973&r2=353974&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Host.cpp (original)
+++ llvm/trunk/lib/Support/Host.cpp Wed Feb 13 12:12:41 2019
@@ -1323,6 +1323,7 @@ bool sys::getHostCPUFeatures(StringMap<b
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;
More information about the llvm-commits
mailing list