[X86] Use MSVC's __cpuidex intrinsic instead of inline assembly in getHostCPUName...
authorCraig Topper <craig.topper@intel.com>
Mon, 17 Jul 2017 05:16:16 +0000 (05:16 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 17 Jul 2017 05:16:16 +0000 (05:16 +0000)
commit828cf302ecf0610347da724fd6d4f4df14c9d086
tree010d00e83fecf1f43b7e5eccd56cb052ce687cb7
parent5869ba8792005b7c3e91b765da333b746db7faed
[X86] Use MSVC's __cpuidex intrinsic instead of inline assembly in getHostCPUName/getHostCPUFeatures for 32-bit builds too.

We're already using it in 64-bit builds because 64-bit MSVC doesn't support inline assembly.

As far as I know we were using inline assembly because at the time the code was added we had to support MSVC 2008 pre-SP1 while the intrinsic was added to MSVC in SP1. Now that we don't have to support that we should be able to just use the intrinsic.

llvm-svn: 308163
llvm/lib/Support/Host.cpp