This is a follow-up patch for https://reviews.llvm.org/D33572, which expands 64-bitreverse intrinsic.
The two patch together fix PR: https://bugs.llvm.org/show_bug.cgi?id=33093
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM
Do we have anything in the test suite that will check this code for correctness and track performance? It would be good to add a small benchmark there, for bit reversal and for byte swap. I'd like this because, in part, if some change causes us to need to regenerate the match lines on this test, I doubt anyone would notice a subtle bug.
Also, in follow-up, I think it would be nice to move all of the TableGen code for this into its own .td file (which you can just include in the present file using an include directive).