Skip to content
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

[clang] implement __builtin_ctzg #83076

Closed
nickdesaulniers opened this issue Feb 26, 2024 · 0 comments · Fixed by #83431
Closed

[clang] implement __builtin_ctzg #83076

nickdesaulniers opened this issue Feb 26, 2024 · 0 comments · Fixed by #83431
Labels
c23 clang:headers Headers provided by Clang, e.g. for intrinsics

Comments

@nickdesaulniers
Copy link
Member

similar to #82058, #83075, 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

@nickdesaulniers nickdesaulniers added clang Clang issues not falling into any other category c23 labels Feb 26, 2024
@EugeneZelenko EugeneZelenko added clang:headers Headers provided by Clang, e.g. for intrinsics and removed clang Clang issues not falling into any other category labels Feb 26, 2024
overmighty added a commit to overmighty/llvm-project that referenced this issue Feb 29, 2024
overmighty added a commit to overmighty/llvm-project that referenced this issue Mar 4, 2024
chencha3 pushed a commit to chencha3/llvm-project that referenced this issue Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c23 clang:headers Headers provided by Clang, e.g. for intrinsics
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants