[VP][RISCV] Add vp.fshl/fshr and RISC-V support.
authorYeting Kuo <yeting.kuo@sifive.com>
Sun, 20 Nov 2022 15:11:56 +0000 (23:11 +0800)
committerYeting Kuo <yeting.kuo@sifive.com>
Wed, 7 Dec 2022 04:16:36 +0000 (12:16 +0800)
commit70de0e014013b4d97febe6704881a9a8c893d078
treefa12402ea8c493d6cd48bed0bce7ab454c807668
parent405fc404bf84fcc13e10bfac754d398199f69b7d
[VP][RISCV] Add vp.fshl/fshr and RISC-V support.

The patch made VectorLegalizer expand ISD::VP_FSHL and ISD::VP_FSHR to
achieve the codegen.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D138379
12 files changed:
llvm/docs/LangRef.rst
llvm/include/llvm/IR/Intrinsics.td
llvm/include/llvm/IR/VPIntrinsics.def
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
llvm/test/Analysis/CostModel/RISCV/rvv-intrinsics.ll
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-fshr-fshl-vp.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/rvv/fshr-fshl-vp.ll [new file with mode: 0644]
llvm/unittests/IR/VPIntrinsicTest.cpp