[PATCH] D93849: [RISCV] Define vmclr.m/vmset.m intrinsics.

Zakk Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 27 19:18:32 PST 2020


khchen created this revision.
khchen added reviewers: craig.topper, rogfer01, frasercrmck, HsiangKai, evandro.
Herald added subscribers: NickHung, luismarques, apazos, sameer.abuasal, pzheng, s.egerton, lenary, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
khchen requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.

Define vmclr.m/vmset.m intrinsics and lower to vmxor.mm/vmxnor.mm.

Ideally all rvv pseudo instructions could be implemented in C header,
but those two instructions don't take an input, codegen can not guarantee
that the source register becomes the same as the destination.

I define two pseduo insts, one would expand to vsetvli + pseduo-v-inst,
then pseudo-v-inst would expand to corresponding v-inst.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D93849

Files:
  llvm/include/llvm/IR/IntrinsicsRISCV.td
  llvm/lib/Target/RISCV/RISCVExpandPseudoInsts.cpp
  llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
  llvm/test/CodeGen/RISCV/rvv/vmclr-rv32.ll
  llvm/test/CodeGen/RISCV/rvv/vmclr-rv64.ll
  llvm/test/CodeGen/RISCV/rvv/vmset-rv32.ll
  llvm/test/CodeGen/RISCV/rvv/vmset-rv64.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93849.313813.patch
Type: text/x-patch
Size: 19046 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201228/0b6b6dcf/attachment.bin>


More information about the llvm-commits mailing list