[PATCH] D133896: [AArch64][SME] Add codegen pass to handle ZA state in arm_new_za functions.

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 14 14:20:13 PDT 2022


sdesmalen created this revision.
sdesmalen added reviewers: aemerson, sagarkulkarni19, shruthiashwath, paulwalker-arm, david-arm.
Herald added subscribers: hiraditya, kristof.beyls, mgorny.
Herald added a project: All.
sdesmalen requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The new pass implements the following:

- Inserts code at the start of an arm_new_za function to commit a lazy-save when the lazy-save mechanism is active.
- Adds a smstart intrinsic at the start of the function.
- Adds a smstop intrinsic at the end of the function.

Patch co-authored by kmclaughlin.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D133896

Files:
  llvm/lib/Target/AArch64/AArch64.h
  llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
  llvm/lib/Target/AArch64/CMakeLists.txt
  llvm/lib/Target/AArch64/SMEABIPass.cpp
  llvm/test/CodeGen/AArch64/O0-pipeline.ll
  llvm/test/CodeGen/AArch64/O3-pipeline.ll
  llvm/test/CodeGen/AArch64/sme-new-za-function.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133896.460228.patch
Type: text/x-patch
Size: 11854 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220914/37f0dcef/attachment.bin>


More information about the llvm-commits mailing list