]> granicus.if.org Git - clang/commit
[X86] Add support for more than 32 features for __builtin_cpu_is
authorCraig Topper <craig.topper@intel.com>
Sat, 20 Oct 2018 03:51:52 +0000 (03:51 +0000)
committerCraig Topper <craig.topper@intel.com>
Sat, 20 Oct 2018 03:51:52 +0000 (03:51 +0000)
commitecd6966ec01af3da84468e2d50dd3e97cbc93d6d
treecc1f3e223dddaa0d41f570d472c2c68f730aedef
parent74888afa84da71f0d77706afbd5bdcc67bd44178
[X86] Add support for more than 32 features for __builtin_cpu_is

libgcc supports more than 32 features by adding a new 32-bit variable __cpu_features2.

This adds the clang support for checking these feature bits.

Patches for compiler-rt and llvm to support this are coming as well.

Probably still need an additional patch for target multiversioning in clang.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@344832 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGBuiltin.cpp
lib/CodeGen/CodeGenFunction.h
test/CodeGen/builtin-cpu-supports.c
test/CodeGen/target-builtin-noerror.c