[PATCH] D105351: [VP} vp.select selects lanes on condition and pivot

Simon Moll via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 2 08:04:47 PDT 2021


simoll created this revision.
simoll added reviewers: rogfer01, craig.topper, frasercrmck, HsiangKai, vkmr.
simoll added a project: VP.
Herald added subscribers: dexonsmith, jdoerfert, hiraditya.
simoll requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Intrinsic declaration and docs for the llvm.vp.select intrinsic.
The standard select instruction does not support selecting lanes with a lane index, only with a condition mask.
This intrinsic does by selecting from the first input where the mask is true and the lane index is below the pivot value.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D105351

Files:
  llvm/docs/LangRef.rst
  llvm/include/llvm/IR/Intrinsics.td
  llvm/include/llvm/IR/VPIntrinsics.def
  llvm/lib/IR/IntrinsicInst.cpp
  llvm/unittests/IR/VPIntrinsicTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105351.356173.patch
Type: text/x-patch
Size: 5830 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210702/15793fdf/attachment.bin>


More information about the llvm-commits mailing list