This is an archive of the discontinued LLVM Phabricator instance.

[PtrAuth] Use default attributes for some ptrauth intrinsics
ClosedPublic

Authored by nikic on Nov 7 2022, 8:28 AM.

Details

Summary

This uses the default intrinsic attributes (nofree, nosync, nocallback, willreturn) for a subset of the ptrauth intrinsics. Notably, this does not use them for auth and resign, because these intrinsics are specified to trap and as such are not willreturn. As far as I understood, the remaining intrinsics may not trap (or can only trap in cases where behavior is undefined).

Diff Detail

Event Timeline

nikic created this revision.Nov 7 2022, 8:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 7 2022, 8:28 AM
nikic requested review of this revision.Nov 7 2022, 8:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 7 2022, 8:28 AM
nikic edited the summary of this revision. (Show Details)Nov 7 2022, 8:29 AM
nikic updated this revision to Diff 480412.Dec 6 2022, 2:50 AM

Rebase to invert patch order.

ab accepted this revision.Dec 8 2022, 9:01 AM

Sorry for the delay; LGTM, thanks!

This revision is now accepted and ready to land.Dec 8 2022, 9:01 AM
This revision was landed with ongoing or failed builds.Dec 9 2022, 1:41 AM
This revision was automatically updated to reflect the committed changes.