[RISCV] Refactor predicates for rvv intrinsic patterns.
authorJianjian GUAN <jacquesguan@me.com>
Mon, 15 May 2023 07:51:29 +0000 (15:51 +0800)
committerJianjian GUAN <jacquesguan@me.com>
Wed, 17 May 2023 01:47:52 +0000 (09:47 +0800)
commit9360926cfcd3bca1c0d662bf8d9ea6726cda4c22
tree68c2fdbf0c4e8745c17fb4cf59499b072645c878
parentd7aa279e98489c5d9a099bdd96d4d81584ebe603
[RISCV] Refactor predicates for rvv intrinsic patterns.

This patch does the following things:

1, Add accurate Predicates in intrinsic-pseudo pattern class depending on the vector type.
2, Make vmulh, vmulhsu, vmulhu and vsmul intrinsic only able to select in v extension.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D150550
llvm/lib/Target/RISCV/RISCVFeatures.td
llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
llvm/lib/Target/RISCV/RISCVSubtarget.h
llvm/test/CodeGen/RISCV/rvv/vmul.ll
llvm/test/CodeGen/RISCV/rvv/vmulh.ll
llvm/test/CodeGen/RISCV/rvv/vmulhsu.ll
llvm/test/CodeGen/RISCV/rvv/vmulhu.ll
llvm/test/CodeGen/RISCV/rvv/vsmul-rv32.ll
llvm/test/CodeGen/RISCV/rvv/vsmul-rv64.ll