summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprComplex.cpp
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@freebsd.org>2013-07-19 17:28:36 +0000
committerRoman Divacky <rdivacky@freebsd.org>2013-07-19 17:28:36 +0000
commit7abbb850a5cda29f7de380b1bab7aed84cd582f0 (patch)
tree5f7a3cf61e08f7ba6f14a0859230f9a5c31b15d1 /lib/CodeGen/CGExprComplex.cpp
parent5c92b9ab4e4dce3233ea3e400a02c443f9afd372 (diff)
downloadclang-7abbb850a5cda29f7de380b1bab7aed84cd582f0.tar.gz
clang-7abbb850a5cda29f7de380b1bab7aed84cd582f0.tar.bz2
clang-7abbb850a5cda29f7de380b1bab7aed84cd582f0.tar.xz
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
Diffstat (limited to 'lib/CodeGen/CGExprComplex.cpp')
0 files changed, 0 insertions, 0 deletions