Skip to content

[clang] implement __builtin_clzg #83075

@nickdesaulniers

Description

@nickdesaulniers

similar to #82058 and mentioned in #79630. To implement parts of C23 stdbit.h, it would be nice if we exposed a similar builtin to GCC.

This is a type agnostic builtin that lowers to an intrinsic I suspect we already have in LLVM.

cc @overmighty

Metadata

Metadata

Assignees

No one assigned

    Labels

    c23clang:headersHeaders provided by Clang, e.g. for intrinsics

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions