This is an archive of the discontinued LLVM Phabricator instance.

[X86] Add support for more than 32 features for __builtin_cpu_is
ClosedPublic

Authored by craig.topper on Oct 19 2018, 3:58 PM.

Details

Summary

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.

Diff Detail

Event Timeline

craig.topper created this revision.Oct 19 2018, 3:58 PM
echristo accepted this revision.Oct 19 2018, 3:59 PM

Feel free to make any follow on changes you need here.

This revision is now accepted and ready to land.Oct 19 2018, 3:59 PM

Rebase on top of D53460

This revision was automatically updated to reflect the committed changes.