[PATCH] Teach builtin clz, ctz, and popcount to be const

Justin Bogner mail at justinbogner.com
Mon Jun 10 23:18:55 PDT 2013

The clz, ctz, and popcount builtins are trivial to add constant folded
implementations of, and gcc accepts them in const contexts.

Can someone please apply this?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: builtins.patch
Type: text/x-diff
Size: 1855 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130611/fe3ec0fa/attachment.patch>

More information about the cfe-commits mailing list