[PATCH] D150550: [RISCV] Refactor predicates for rvv intrinsic patterns.

Jianjian Guan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 15 02:24:22 PDT 2023


jacquesguan created this revision.
Herald added subscribers: jobnoorman, luke, VincentWu, vkmr, frasercrmck, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya, arichardson.
Herald added a project: All.
jacquesguan requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D150550

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150550.522097.patch
Type: text/x-patch
Size: 47325 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230515/490eb558/attachment.bin>


More information about the llvm-commits mailing list