This is an archive of the discontinued LLVM Phabricator instance.

[MIPS GlobalISel] Select bswap
ClosedPublic

Authored by Petar.Avramovic on Dec 11 2019, 8:46 AM.

Details

Summary

G_BSWAP is generated from llvm.bswap.<type> intrinsics, clang genrates
these intrinsics from builtin_bswap32 and builtin_bswap64.
Add lower and narrowscalar for G_BSWAP.
Lower G_BSWAP on MIPS32, select G_BSWAP on MIPS32 revision 2 and later.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptDec 11 2019, 8:46 AM
This revision is now accepted and ready to land.Dec 12 2019, 9:35 AM
This revision was automatically updated to reflect the committed changes.