]> granicus.if.org Git - clang/commit
Add more gcc compatibility names to clang's cpuid.h
authorDimitry Andric <dimitry@andric.com>
Sun, 31 Jul 2016 20:23:23 +0000 (20:23 +0000)
committerDimitry Andric <dimitry@andric.com>
Sun, 31 Jul 2016 20:23:23 +0000 (20:23 +0000)
commit331c3de83304fe93fc6ccabbf953c542427e2aee
tree8bd82b25857e2ebc86fd662caded7aa71519dba4
parent1543986483795764fb27f77bdf417b8b86cbef12
Add more gcc compatibility names to clang's cpuid.h

Summary:
Some cpuid bit defines are named slightly different from how gcc's
cpuid.h calls them.

Define a few more compatibility names to appease software built for gcc:

* `bit_PCLMUL`      alias of `bit_PCLMULQDQ`
* `bit_SSE4_1`      alias of `bit_SSE41`
* `bit_SSE4_2`      alias of `bit_SSE42`
* `bit_AES`         alias of `bit_AESNI`
* `bit_CMPXCHG8B`   alias of `bit_CX8`

While here, add the misssing 29th bit, `bit_F16C` (which is how gcc
calls this bit).

Reviewers: joerg, rsmith

Subscribers: bruno, cfe-commits

Differential Revision: https://reviews.llvm.org/D22010

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