[all-commits] [llvm/llvm-project] 94a24e: [MIPS GlobalISel] Select bswap
petar-avramovic via All-commits
all-commits at lists.llvm.org
Mon Dec 30 02:18:56 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 94a24e7a401be7a3db0ddfa2035855b75c8cc55d
https://github.com/llvm/llvm-project/commit/94a24e7a401be7a3db0ddfa2035855b75c8cc55d
Author: Petar Avramovic <Petar.Avramovic at rt-rk.com>
Date: 2019-12-30 (Mon, 30 Dec 2019)
Changed paths:
M llvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
M llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
M llvm/lib/Target/Mips/MipsLegalizerInfo.cpp
M llvm/lib/Target/Mips/MipsRegisterBankInfo.cpp
A llvm/test/CodeGen/Mips/GlobalISel/instruction-select/bswap.mir
A llvm/test/CodeGen/Mips/GlobalISel/legalizer/bswap.mir
A llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/bswap.ll
A llvm/test/CodeGen/Mips/GlobalISel/regbankselect/bswap.mir
Log Message:
-----------
[MIPS GlobalISel] Select bswap
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.
Differential Revision: https://reviews.llvm.org/D71362
More information about the All-commits
mailing list