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

Tracking issue for reversing the bit pattern in an integer #48763

Amanieu opened this Issue Mar 6, 2018 · 3 comments


None yet
6 participants

Amanieu commented Mar 6, 2018

Tracking issue for the reverse_bits method implemented in #48573.


This comment has been minimized.


SimonSapin commented Mar 17, 2018

Motivation from #32798 (comment)

On ARM, there are dedicated instructions for reversing bits. The intrinsic would lower to a single RBIT instruction.


This comment has been minimized.

zbentley commented Mar 27, 2018

I'm a user that would benefit from this being stabilized. No worries if I have to wait until an LLVM requirement version bump, though. We would benefit from it, but aren't in a position to contribute support, so we are happy to wait/offer testing or documentation help.


This comment has been minimized.

raphaelcohn commented May 1, 2018

Just to add to this, these intrinsics are useful for formatting data that is represented bit reversed, such as the IEEE standard for bit-reversed MACs, token ring addresses, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment