[llvm] [RISCV][GISEL] Add legalizer for G_BSWAP (PR #70226)
Michael Maitland via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 25 15:07:41 PDT 2023
================
@@ -81,6 +81,11 @@ RISCVLegalizerInfo::RISCVLegalizerInfo(const RISCVSubtarget &ST) {
.clampScalar(BigTyIdx, XLenLLT, XLenLLT);
}
+ getActionDefinitionsBuilder(G_BSWAP)
+ .widenScalarToNextPow2(0)
----------------
michaelmaitland wrote:
My understanding is that `legalFor` would mark those types as legal and not need to lower them. At least that is what it looks like when I try it. Am I misunderstanding something?
https://github.com/llvm/llvm-project/pull/70226
More information about the llvm-commits
mailing list