Hey Andy,<div><br></div><div>I proposed a similar patch to LLVM (left circular shift) around 10/2011. Parts of my patch did make it into trunk about a year after, but others did not. </div><div><br></div><div>At that time, my solution was to add a binary operator to the IRBuilder, since LCS fits in nicely with the other shift operators. But, it is quite cumbersome to merge :*(. I would be happy to resend the original patch if you'd like.</div>
<div><br></div><div>-Cameron</div><div><br></div><div><div class="gmail_quote">On Sun, Jul 29, 2012 at 4:02 PM, Andy Gibbs <span dir="ltr"><<a href="mailto:andyg1001@hotmail.co.uk" target="_blank">andyg1001@hotmail.co.uk</a>></span> wrote:<br>
<div>... </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"> It would be nice to have a __builtin_rotl family in clang, in</div>
my opinion, but it would need back-end support from llvm. </blockquote></div></div>