[all-commits] [llvm/llvm-project] 89f31f: [AArch64][SME] Preserve ZA in agnostic ZA function...

Benjamin Maxwell via All-commits all-commits at lists.llvm.org
Thu Apr 2 16:33:49 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 89f31f26c82354c6f478c0acfb493139510e3e16
      https://github.com/llvm/llvm-project/commit/89f31f26c82354c6f478c0acfb493139510e3e16
  Author: Benjamin Maxwell <benjamin.maxwell at arm.com>
  Date:   2026-04-03 (Fri, 03 Apr 2026)

  Changed paths:
    M llvm/lib/Target/AArch64/MachineSMEABIPass.cpp
    A llvm/test/CodeGen/AArch64/sme-agnostic-za-without-sme.ll

  Log Message:
  -----------
  [AArch64][SME] Preserve ZA in agnostic ZA functions without +sme (#190141)

`__arm_agnostic("sme_za_state")` does not require +sme, but we must
still preserve ZA in case the function is used with code that makes use
of ZA:

> The use of `__arm_agnostic("sme_za_state")` allows writing functions
> that are compatible with ZA state without having to share ZA state
> with the caller, as required by `__arm_preserves`. The use of this
> attribute does not imply that SME is available.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list