[PATCH] D71362: [MIPS GlobalISel] Select bswap

Petar Avramovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 11 08:46:22 PST 2019


Petar.Avramovic created this revision.
Petar.Avramovic added reviewers: atanasyan, petarj.
Herald added subscribers: llvm-commits, volkan, jrtc27, hiraditya, arichardson, rovka, sdardis.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D71362

Files:
  llvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
  llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
  llvm/lib/Target/Mips/MipsLegalizerInfo.cpp
  llvm/lib/Target/Mips/MipsRegisterBankInfo.cpp
  llvm/test/CodeGen/Mips/GlobalISel/instruction-select/bswap.mir
  llvm/test/CodeGen/Mips/GlobalISel/legalizer/bswap.mir
  llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/bswap.ll
  llvm/test/CodeGen/Mips/GlobalISel/regbankselect/bswap.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71362.233377.patch
Type: text/x-patch
Size: 13937 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191211/a7933594/attachment.bin>


More information about the llvm-commits mailing list