[PATCH] D131578: [AArch64][SME] Implement ABI for calls from streaming-compatible functions.

Sander de Smalen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 10 08:39:38 PDT 2022


sdesmalen created this revision.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
sdesmalen requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

When a function is streaming-compatible and calls a function with a normal or streaming
interface, it may need to enable/disable stremaing mode before the call, and
needs to restore PSTATE.SM after the call.

This patch implements this with a Pseudo node that gets expanded to a
conditional branch and smstart/smstop node.

More details about the SME attributes and design can be found
in D131562 <https://reviews.llvm.org/D131562>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D131578

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/lib/Target/AArch64/AArch64SMEInstrInfo.td
  llvm/test/CodeGen/AArch64/sme-streaming-compatible-interface.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131578.451491.patch
Type: text/x-patch
Size: 26675 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220810/d47d23c4/attachment-0001.bin>


More information about the llvm-commits mailing list