]> granicus.if.org Git - llvm/commit
[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)
commite9faa0919c52149cb3ffeb8c5b0c4de5637f5868
tree518170a0d5fb4cbfcc552bd3ec72ecd2c360cd4a
parent5fa31a16fe72d25f66220dd02e6ed7e0c5aad9be
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308163 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Host.cpp