[PATCH] D127853: [AArch64][SME] Add SME cntsb/h/w/d intrinsics

David Sherwood via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 15 06:31:33 PDT 2022


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

These intrinsics return the number of elements in a streaming
vector, for example aarch64.sme.cntsw returns the number of
32-bit elements. When in streaming mode these are equivalent
to aarch64.sve.cntb/h/w/d with an input value of 1.

I have implemented these intrinsics using the rdsvl instruction
and added tests here:

  CodeGen/AArch64/SME/sme-intrinsics-rdsvl.ll


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D127853

Files:
  llvm/include/llvm/IR/IntrinsicsAArch64.td
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/lib/Target/AArch64/AArch64ISelLowering.h
  llvm/lib/Target/AArch64/AArch64SMEInstrInfo.td
  llvm/test/CodeGen/AArch64/sme-intrinsics-rdsvl.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127853.437132.patch
Type: text/x-patch
Size: 5503 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220615/e706a007/attachment.bin>


More information about the llvm-commits mailing list