[PATCH] D105347: [AMDGPU][GlobalISel] Legalization and selection of G_ROTL and G_ROTR
Mateja Marjanovic via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 2 05:36:40 PDT 2021
matejam created this revision.
matejam added reviewers: foad, arsenm, mbrkusanin, Petar.Avramovic.
matejam added a project: LLVM.
Herald added subscribers: kerbowa, hiraditya, t-tye, tpr, dstuttard, rovka, yaxunl, nhaehnle, jvesely, kzhuravl.
matejam requested review of this revision.
Herald added a subscriber: wdng.
Add implementation for the legalization and selection of G_ROTL and G_ROTR machine instructions.
They are very similar to funnel shift instructions, the only difference is funnel shifts have 3 operands,
whereas rotate instructions have two operands, the first being the register that is being rotated and
the second being the number of shifts.
https://reviews.llvm.org/D105347
Files:
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
llvm/lib/Target/AMDGPU/VOP3Instructions.td
llvm/test/CodeGen/AMDGPU/GlobalISel/rotate_pre_instselect.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/rotate_pre_legalization.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/rotate_pre_regbankselect.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105347.356157.patch
Type: text/x-patch
Size: 94233 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210702/e0d10b35/attachment-0001.bin>
More information about the llvm-commits
mailing list