]> granicus.if.org Git - clang/commit
[X86] Add __get_cpuid_count to cpuid.h. Update __get_cpuid to check the maximum level...
authorCraig Topper <craig.topper@intel.com>
Sun, 9 Jul 2017 17:43:10 +0000 (17:43 +0000)
committerCraig Topper <craig.topper@intel.com>
Sun, 9 Jul 2017 17:43:10 +0000 (17:43 +0000)
commit723acf9205420108ade64c216de7ca30181c7877
tree042d5ccde2870be9a7338fce68d0902a3dd91b31
parent16b5639875b5c761c54d696d23fdbb1007ea8fd3
[X86] Add __get_cpuid_count to cpuid.h. Update __get_cpuid to check the maximum level support before accessing the leaf. Rename level to leaf everywhere.

This matches gcc behavior.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@307506 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Headers/cpuid.h