[Clang] Consider adding __builtin_rotate{left,right}g
#122819
Open
Description
I don't think there is much of a reason not to add them and would avoid a long list of if constexpr
just for clang to go through the same code gen path in the end. A generic version would also add support for other integral types like _BitInt
and __int128
.
P.S. I don't really understand why this hasn't been done in the first place. Now we just have a bunch of g
version for all the builtins as well as numbered ones without any benefit I can see.