]> granicus.if.org Git - clang/commit
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)
commit7abbb850a5cda29f7de380b1bab7aed84cd582f0
tree5f7a3cf61e08f7ba6f14a0859230f9a5c31b15d1
parent5c92b9ab4e4dce3233ea3e400a02c443f9afd372
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!

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