Skip to content

Conversation

sdesmalen-arm
Copy link
Collaborator

The AAPCS recommends avoiding the use of x18 as it may be used for other purposes such as a shadow call stack.

In this particular case it could just as well use x16 instead.

The AAPCS recommends avoiding the use of x18 as it may be used
for other purposes such as a shadow call stack.

In this particular case it could just as well use x16 instead.
Copy link
Collaborator

@smithp35 smithp35 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch. LGTM, especially as x16 is a simple substitution.

AAPCS64 closest link to platform register usage https://github.com/ARM-software/abi-aa/blob/main/aapcs64/aapcs64.rst#611general-purpose-registers

@sdesmalen-arm sdesmalen-arm merged commit 149f91b into llvm:main Sep 12, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants