[PATCH] D94144: [RISCV] Support vscale intrinsic and ISDNode.

Hsiangkai Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 5 18:51:44 PST 2021


HsiangKai created this revision.
HsiangKai added reviewers: craig.topper, frasercrmck, rogfer01, luismarques, evandro.
Herald added subscribers: NickHung, 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.
HsiangKai requested review of this revision.
Herald added a subscriber: MaskRay.
Herald added a project: LLVM.

In RISC-V, we have VLENB register to know the real vector size at run time. `vscale` is the run time constant in LLVM to know the factor in the scalable vector types. We could use VLENB to get `vscale` value in LLVM.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94144

Files:
  llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
  llvm/test/CodeGen/RISCV/rvv/rvv-vscale.i32.ll
  llvm/test/CodeGen/RISCV/rvv/rvv-vscale.i64.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94144.314770.patch
Type: text/x-patch
Size: 4835 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210106/6408ba88/attachment-0001.bin>


More information about the llvm-commits mailing list