Skip to content

[clang] __bf16 Type Support Macros #133660

@bassiounix

Description

@bassiounix

I can't find any macro that can indicate the availability of the __bf16 type, all I can find is hardware support macros but no generic type availability macros or anything set in clang or <float.h>.

This is needed for Bfloat16 GSoC project in libc.

If the solution is to gather the hardware support macros available in clang and define a macro for the general type support in <float.h>, I'd like to work on this before April 8th (the start of GSoC).

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"enhancementImproving things as opposed to bug fixing, e.g. new or missing featurefloating-pointFloating-point math

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions