Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Arbitrary-bit rotations are not implemented #43
For this one, I don't have a nice small test case :( Full LLVM IR is at https://gist.github.com/gergoerdi/9f41a400d7611f7577cc83decf2dbbd4
It looks like we've got support for constant bit-rotations but rotation by anything that is not a constant is unsupported.
First off the bat, we need to add this to
setOperationAction(ISD::ROTL, MVT::i8, Custom); setOperationAction(ISD::ROTL, MVT::i16, Custom);
That will let us us custom lowering hooks for this.
After that, we will need to add a new