[PATCH] D138575: [AArch64] Add hasSVEorSME() helper and fix some incorrect checks

Benjamin Maxwell via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 23 07:28:40 PST 2022


benmxwl-arm created this revision.
benmxwl-arm added a reviewer: peterwaller-arm.
Herald added subscribers: ctetreau, hiraditya, kristof.beyls, tschuett.
Herald added a project: All.
benmxwl-arm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This adds a little hasSVEorSME() helper, and as a NFC updates existing
to use it. The assertions get[Min|Max]SVEVectorSizeInBits() are also
now corrected to use hasSVEorSME() rather than just hasSVE().


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D138575

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
  llvm/lib/Target/AArch64/AArch64InstrInfo.td
  llvm/lib/Target/AArch64/AArch64Subtarget.cpp
  llvm/lib/Target/AArch64/AArch64Subtarget.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138575.477501.patch
Type: text/x-patch
Size: 5987 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221123/edec31c5/attachment.bin>


More information about the llvm-commits mailing list