Skip to content

[Clang] Consider adding __builtin_rotate{left,right}g #122819

@philnik777

Description

I don't think there is much of a reason not to add them and would avoid a long list of if constexpr just for clang to go through the same code gen path in the end. A generic version would also add support for other integral types like _BitInt and __int128.

P.S. I don't really understand why this hasn't been done in the first place. Now we just have a bunch of g version for all the builtins as well as numbered ones without any benefit I can see.

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 feature

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions