This patch implements __get_cpuid_max() as an inline and __cpuid() and
authorRoman Divacky <rdivacky@freebsd.org>
Fri, 19 Jul 2013 17:28:36 +0000 (17:28 +0000)
committerRoman Divacky <rdivacky@freebsd.org>
Fri, 19 Jul 2013 17:28:36 +0000 (17:28 +0000)
commit4dcb5dbb53ea4fbeab48bc6bc3c4d392361dabc1
tree0e0a0816c4b140296fb7bcfec331f55cc665bd1d
parentb21ebec2c441a759731a100059367b8ab05c940a
This patch implements __get_cpuid_max() as an inline and __cpuid() and
__cpuid_count() as macros to be compatible with GCC's cpuid.h.  It also adds
bit_<foo> constants for the various feature bits as described in version 039
(May 2011) of Intel's SDM Volume 2 in the description of the CPUID
instruction.  The list of bit_<foo> constants is a bit exhaustive (GCC
doesn't do near this many).  More bits could be added from a newer version of
SDM if desired.

Patch by John Baldwin!

llvm-svn: 186696
clang/lib/Headers/cpuid.h