[PATCH] D53458: [X86] Add support for more than 32 features for __builtin_cpu_is

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 19 15:58:45 PDT 2018


craig.topper created this revision.
craig.topper added reviewers: erichkeane, echristo.

libgcc now 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.


https://reviews.llvm.org/D53458

Files:
  lib/CodeGen/CGBuiltin.cpp
  lib/CodeGen/CodeGenFunction.h
  test/CodeGen/builtin-cpu-supports.c
  test/CodeGen/target-builtin-noerror.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53458.170271.patch
Type: text/x-patch
Size: 7086 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181019/21c1a5bd/attachment.bin>


More information about the llvm-commits mailing list