[PATCH] D114541: [CodeGen] Add scalable vector support for lowering of llvm.get.active.lane.mask

David Sherwood via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 24 08:19:17 PST 2021


david-arm created this revision.
david-arm added reviewers: sdesmalen, SjoerdMeijer, c-rhodes, kmclaughlin, efriedma.
Herald added subscribers: ctetreau, hiraditya, kristof.beyls.
david-arm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Currently the generic lowering of llvm.get.active.lane.mask is done
in SelectionDAGBuilder::visitIntrinsicCall and currently assumes
only fixed-width vectors are used. This patch changes the code to be
more generic and support scalable vectors too. I have added tests
for SVE here:

  CodeGen/AArch64/active_lane_mask.ll

although the code quality leaves a lot to be desired. The code will
be improved significantly in a later patch that makes use of the
SVE whilelo instruction.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D114541

Files:
  llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
  llvm/test/CodeGen/AArch64/active_lane_mask.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114541.389507.patch
Type: text/x-patch
Size: 29723 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211124/86955829/attachment.bin>


More information about the llvm-commits mailing list