[PATCH] D91416: [VE] LVLGen sets VL before vector insts

Simon Moll via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 13 04:59:35 PST 2020


simoll created this revision.
simoll added reviewers: kaz7, k-ishizaka.
simoll added a project: VE.
Herald added subscribers: llvm-commits, hiraditya, mgorny.
Herald added a project: LLVM.
simoll requested review of this revision.

The VE backend represents vector instructions with an explicit 'i32'
vector length operand.  In the VE ISA, the vector length is always read
from the VL hardware register.  The LVLGen pass inserts 'lvl'
instructions as necessary to set VL to the right value before each
vector instruction.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D91416

Files:
  llvm/lib/Target/VE/CMakeLists.txt
  llvm/lib/Target/VE/LVLGen.cpp
  llvm/lib/Target/VE/VE.h
  llvm/lib/Target/VE/VETargetMachine.cpp
  llvm/test/CodeGen/VE/VELIntrinsics/lvlgen.ll
  llvm/test/CodeGen/VE/VELIntrinsics/vld.ll
  llvm/test/CodeGen/VE/VELIntrinsics/vst.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91416.305103.patch
Type: text/x-patch
Size: 48034 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201113/d38f52be/attachment.bin>


More information about the llvm-commits mailing list