Skip to content

[libc] Update preprocessor definitions for type detection #83182

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 of 4 tasks
gchatelet opened this issue Feb 27, 2024 · 2 comments
Open
3 of 4 tasks

[libc] Update preprocessor definitions for type detection #83182

gchatelet opened this issue Feb 27, 2024 · 2 comments
Assignees
Labels
libc metabug Issue to collect references to a group of similar or related issues.

Comments

@gchatelet
Copy link
Contributor

gchatelet commented Feb 27, 2024

This is to track the items in #81870 (comment)

i.e.,

@gchatelet gchatelet added the libc label Feb 27, 2024
@gchatelet gchatelet self-assigned this Feb 27, 2024
@gchatelet
Copy link
Contributor Author

FYI @nickdesaulniers

@llvmbot
Copy link
Member

llvmbot commented Feb 27, 2024

@llvm/issue-subscribers-libc

Author: Guillaume Chatelet (gchatelet)

This is to track the items in https://github.com//pull/81870#issuecomment-1948099726

i.e.,

  • Rename float.h into types.h
  • Rename all #define in this file to LIBC_TYPES_HAS_...
    LIBC_TYPES_HAS_INT64
    LIBC_TYPES_HAS_FLOAT16
    LIBC_TYPES_HAS_FLOAT128
  • Don't expose how the type is provided and use float16 or float128 solely (i.e. no LIBC_COMPILER_HAS_FLOAT128_EXTENSION nor LIBC_COMPILER_HAS_C23_FLOAT128). Added benefit of not defining LIBC_COMPILER_... outside of the compiler.h file.
  • Update the documentation

@EugeneZelenko EugeneZelenko added the metabug Issue to collect references to a group of similar or related issues. label Feb 27, 2024
@gchatelet gchatelet changed the title Update preprocessor definitions for type detection [libc] Update preprocessor definitions for type detection Feb 27, 2024
gchatelet added a commit that referenced this issue Feb 29, 2024
gchatelet added a commit that referenced this issue Feb 29, 2024
gchatelet added a commit that referenced this issue Mar 4, 2024
gchatelet added a commit to gchatelet/llvm-project that referenced this issue Mar 6, 2024
gchatelet added a commit that referenced this issue Mar 8, 2024
gchatelet added a commit that referenced this issue Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
libc metabug Issue to collect references to a group of similar or related issues.
Projects
None yet
Development

No branches or pull requests

3 participants