[PATCH] D147934: [RISCV] Support LLVM IR intrinsics for XSfvcp extension.

Brandon Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 10 06:01:27 PDT 2023


4vtomat created this revision.
Herald added subscribers: jobnoorman, luke, VincentWu, vkmr, frasercrmck, evandro, 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.
4vtomat requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

This patch aims at supporting LLVM IR for sifive VCIX(XSfvcp).

Note that sf.vc.x and sf.vc.i intrinsics don't have any vector types in the output
and inputs, but the intrinsic spec said that we still need to add vetvli for
them. Therefore, we need to encode the VTYPE to these IR names.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D147934

Files:
  llvm/include/llvm/IR/IntrinsicsRISCV.td
  llvm/include/llvm/IR/IntrinsicsRISCVXsf.td
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
  llvm/lib/Target/RISCV/RISCVInstrInfoXSf.td
  llvm/test/CodeGen/RISCV/rvv/xsfvcp-x.ll
  llvm/test/CodeGen/RISCV/rvv/xsfvcp-xv.ll
  llvm/test/CodeGen/RISCV/rvv/xsfvcp-xvv.ll
  llvm/test/CodeGen/RISCV/rvv/xsfvcp-xvw.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147934.512126.patch
Type: text/x-patch
Size: 485633 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230410/e9bad13a/attachment-0001.bin>


More information about the llvm-commits mailing list