[PATCH] D119338: [AArch64][SVE] Add structured load/store opcodes to getMemOpInfo

Kerry McLaughlin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 9 07:01:58 PST 2022


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

Currently, loading from or storing to a stack location with a structured load
or store crashes in isAArch64FrameOffsetLegal as the opcodes are not handled by
getMemOpInfo. This patch adds the opcodes for structured load/store instructions
with an immediate index to getMemOpInfo & getLoadStoreImmIdx, setting appropriate
values for the scale, width & min/max offsets.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D119338

Files:
  llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
  llvm/test/CodeGen/AArch64/ldN-reg-imm-alloca.ll
  llvm/test/CodeGen/AArch64/stN-reg-imm-alloca.ll
  llvm/test/CodeGen/AArch64/sve-fixed-ld2-alloca.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119338.407150.patch
Type: text/x-patch
Size: 34149 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220209/5ec4d58d/attachment.bin>


More information about the llvm-commits mailing list