This is an archive of the discontinued LLVM Phabricator instance.

Add builtins for bitreverse intrinsic
ClosedPublic

Authored by arsenm on Jan 22 2016, 12:18 PM.

Details

Reviewers
jmolloy
hfinkel
Summary

Follow the naming convention that bswap uses since it's a
similar sort of operation.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 45724.Jan 22 2016, 12:18 PM
arsenm retitled this revision from to Add builtins for bitreverse intrinsic.
arsenm updated this object.
arsenm added a reviewer: jmolloy.
arsenm added a subscriber: cfe-commits.
hfinkel accepted this revision.Feb 3 2016, 6:43 AM
hfinkel added a reviewer: hfinkel.
hfinkel added a subscriber: hfinkel.

LGTM.

This revision is now accepted and ready to land.Feb 3 2016, 6:43 AM
arsenm closed this revision.Feb 3 2016, 9:54 AM

r259671.

Should I put some documentation for these somewhere? docs/LanguageExtensions.rst seems to be the place, but it only has a random subset of the current builtins.

r259671.

Should I put some documentation for these somewhere? docs/LanguageExtensions.rst seems to be the place, but it only has a random subset of the current builtins.

My impression is that we prioritize documenting the builtins that don't have GCC equivalents. Thus, documenting them there along with the other assorted Clang-specific builtins seems reasonable.