[VP] Declaration and docs for vp.select intrinsic
authorSimon Moll <simon.moll@emea.nec.com>
Thu, 2 Sep 2021 07:53:53 +0000 (09:53 +0200)
committerSimon Moll <simon.moll@emea.nec.com>
Thu, 2 Sep 2021 09:17:14 +0000 (11:17 +0200)
commitea2cdbf5e655ce157c2224f7d427229be55551cc
tree2dc2301e77f5ea118fbe75ad579f3bc7a9e487ec
parente387c8c413e2127bc93950fb6d786290237b4a9f
[VP] Declaration and docs for vp.select intrinsic

llvm.vp.select extends the regular select instruction with an explicit
vector length (%evl).

All lanes with indexes at and above %evl are
undefined. Lanes below %evl are taken from the first input where the
mask is true and from the second input otherwise.

Reviewed By: rogfer01

Differential Revision: https://reviews.llvm.org/D105351
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