Skip to content

Conversation

@jroelofs
Copy link

@jroelofs jroelofs commented Oct 27, 2025

This is almost NFCI, though there are some small changes I expect re: adding cfi's that we were missing before, as well as some small improvements to epilogue sequences in a couple of cases.

rdar://163365479

... which silently caused the wrong overload to be selected.
@jroelofs jroelofs force-pushed the jroelofs/pac-prologue-epilogue branch from a1c4480 to b91363d Compare October 27, 2025 22:16
});

// FIXME: do we need to look for the AArch64::RET_POPLESS at the end of the
// epilogue?
Copy link
Author

Choose a reason for hiding this comment

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

This is a question for @ahmedbougacha. I wasn't sure if CC::SwiftCoro == "is RET_POPLESS the last instruction of the epilogue" or if there's a subtle difference there.

@jroelofs jroelofs force-pushed the jroelofs/pac-prologue-epilogue branch from b91363d to a094df4 Compare October 27, 2025 22:23
; CHECK-NEXT: ldp x29, x30, [x29] ; 16-byte Folded Reload
; CHECK-NEXT: autib x30, x16
; CHECK-NEXT: ret
; CHECK-NEXT: retab
Copy link
Author

Choose a reason for hiding this comment

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

IIUC this is an improvement, but please double-check me here @ahmedbougacha

…rAuth infra

This is _almost_ NFCI, though there are some small changes I expect re: adding
cfi's that we were missing before, as well as some small improvements to
epilogue sequences in a couple of cases.

rdar://163365479
@jroelofs jroelofs force-pushed the jroelofs/pac-prologue-epilogue branch from a094df4 to a2d29c9 Compare October 27, 2025 22:35
return MFIa->shouldSignReturnAddress(*a.getMF(), false) ==
MFIb->shouldSignReturnAddress(*b.getMF(), false) &&
MFIa->shouldSignReturnAddress(*a.getMF(), true) ==
MFIb->shouldSignReturnAddress(*b.getMF(), true);
Copy link
Author

Choose a reason for hiding this comment

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

@dtellenbach I think you had some question about this bit....?

@jroelofs
Copy link
Author

This builds on top of llvm#165056

@jroelofs
Copy link
Author

@swift-ci test llvm

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.

2 participants