This is an archive of the discontinued LLVM Phabricator instance.

[libc] Add compiler, builtin and feature detection
ClosedPublic

Authored by gchatelet on Dec 9 2022, 6:31 AM.

Details

Summary

This is a first step to support GCC. This patch adds support for builtin and feature detection.

Diff Detail

Event Timeline

gchatelet created this revision.Dec 9 2022, 6:31 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptDec 9 2022, 6:31 AM
gchatelet requested review of this revision.Dec 9 2022, 6:31 AM
gchatelet updated this revision to Diff 481627.Dec 9 2022, 6:34 AM
  • Fix typo
gchatelet added inline comments.Dec 12 2022, 12:44 AM
libc/src/__support/CMakeLists.txt
32

We may want to put this into its own header_library.

sivachandra accepted this revision.Dec 12 2022, 9:09 AM
sivachandra added inline comments.
libc/src/__support/CMakeLists.txt
32

Agreed. Also, may be a name like compiler_features.h?

This revision is now accepted and ready to land.Dec 12 2022, 9:09 AM
gchatelet updated this revision to Diff 482430.Dec 13 2022, 4:49 AM
  • Address comments and rebase
This revision was landed with ongoing or failed builds.Dec 13 2022, 5:01 AM
This revision was automatically updated to reflect the committed changes.