[PATCH] D104308: [VP] Add vector-predicated reduction intrinsics

Fraser Cormack via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 15 09:41:14 PDT 2021


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

This patch adds vector-predicated ("VP") reduction intrinsics
corresponding to each of the existing unpredicated
`llvm.vector.reduce.*` versions. Support for expansion on targets
without native vector-predication support is included.

This patch is based on the "reduction
slice" <https://reviews.llvm.org/D57504#1732277> of the LLVM-VP
reference patch (https://reviews.llvm.org/D57504).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D104308

Files:
  llvm/docs/LangRef.rst
  llvm/include/llvm/IR/IntrinsicInst.h
  llvm/include/llvm/IR/Intrinsics.td
  llvm/include/llvm/IR/VPIntrinsics.def
  llvm/lib/CodeGen/ExpandVectorPredication.cpp
  llvm/lib/IR/IntrinsicInst.cpp
  llvm/test/CodeGen/Generic/expand-vp.ll
  llvm/test/Verifier/vp-intrinsics.ll
  llvm/unittests/IR/VPIntrinsicTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104308.352164.patch
Type: text/x-patch
Size: 56722 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210615/bcb91d5c/attachment-0001.bin>


More information about the llvm-commits mailing list