[AArch64][GlobalISel] Define some legalization rules for G_ROTR and G_ROTL.
authorAmara Emerson <amara@apple.com>
Sun, 28 Mar 2021 07:38:39 +0000 (00:38 -0700)
committerAmara Emerson <amara@apple.com>
Tue, 30 Mar 2021 18:11:19 +0000 (11:11 -0700)
commit1bc90847ee3ef027f194ed740bb0bb72b8d7579a
tree16af4452e7da9cc7ca94e2ea55c23f2a2d317a51
parent91887cd4ecc7e71715677e7a256ba243d54c781f
[AArch64][GlobalISel] Define some legalization rules for G_ROTR and G_ROTL.

For imported pattern purposes, we have a custom rule that promotes the rotate
amount to 64b as well.

Differential Revision: https://reviews.llvm.org/D99463
llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.h
llvm/test/CodeGen/AArch64/GlobalISel/legalize-rotr-rotl.mir [new file with mode: 0644]
llvm/test/CodeGen/AArch64/GlobalISel/legalizer-info-validation.mir