[PATCH] D58081: [GlobalISel][AArch64] Select llvm.bswap* for non-vector types

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 11 15:44:34 PST 2019

paquette created this revision.
paquette added a reviewer: aemerson.
Herald added subscribers: Petar.Avramovic, volkan, kristof.beyls, javed.absar, rovka.

This teaches the IRTranslator to emit G_BSWAP when it runs into Intrinsic::bswap. This allows us to select G_BSWAP for non-vector types in AArch64.


Add a select-bswap.mir test, and add global isel checks to a couple existing tests in test/CodeGen/AArch64.

This doesn't handle every bswap case, since some of these rely on known bits stuff. This just lets us handle the naive case.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58081.186354.patch
Type: text/x-patch
Size: 4392 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190211/86e5d657/attachment.bin>

More information about the llvm-commits mailing list