Skip to content

[Clang] Add __builtin_elementwise_ctlz/cttz builtin intrinsics #154113

@RKSimon

Description

@RKSimon

Implement vector elementwise leading/trailing zero count intrinsics with constexpr support - references #153113 + #153572

I know at the very least AVX512 / NEON both correctly handle the zero input case so I don't believe we need the "is_zero_poison" handling like we do for the llvm intrinsic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"constexprAnything related to constant evaluationgood first issuehttps://github.com/llvm/llvm-project/contribute

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions