Skip to content

Conversation

MacDue
Copy link
Member

@MacDue MacDue commented Sep 3, 2025

No description provided.

MacDue added 6 commits August 27, 2025 15:11
This extends the MachineSMEABIPass to handle agnostic ZA functions. This
case is currently handled like shared ZA functions, but we don't require
ZA state to be reloaded before agnostic ZA calls.

Note: This patch does not yet fully handle agnostic ZA functions that
can catch exceptions. E.g.:

```
__arm_agnostic("sme_za_state") void try_catch_agnostic_za_callee()
{
  try {
    agnostic_za_call();
  } catch(...) {
    noexcept_agnostic_za_call();
  }
}
```

As in this case, we won't commit a ZA save before the
`agnostic_za_call()`, which would be needed to restore ZA in the catch
block. This will be handled in a later patch.

Change-Id: I9cce7b42ec8b64d5442b35231b65dfaf9d149eed
Change-Id: I94018ed55c302de670f7a0b25fd28605d9bed2b6
Change-Id: Ib920d9cd4c2baac8dc278e076806504747619d8b
Change-Id: Ia4b65e49c9007ae6b13a10ce2ea8ee1411036dc0
Change-Id: I53a80b98290e4288aa22656811b85c1d8a3bddc9
Change-Id: I3ec3dcb65a0ff77c59b0741ca7240d80f44e62a3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant