This is an archive of the discontinued LLVM Phabricator instance.

[clang][ARM] emit PACBTI-M feature defines
ClosedPublic

Authored by stuij on Oct 25 2021, 3:15 AM.

Details

Summary

emit ARM_FEATURE_BTI_DEFAULT and ARM_FEATURE_PAC_DEFAULT defines when those
features have been enabled

This patch is part of a series that adds support for the PACBTI-M extension of
the Armv8.1-M architecture, as detailed here:

https://community.arm.com/arm-community-blogs/b/architectures-and-processors-blog/posts/armv8-1-m-pointer-authentication-and-branch-target-identification-extension

The PACBTI-M specification can be found in the Armv8-M Architecture Reference
Manual:

https://developer.arm.com/documentation/ddi0553/latest

The following people contributed to this patch:

  • Victor Campos
  • Ties Stuij

Diff Detail

Event Timeline

stuij created this revision.Oct 25 2021, 3:15 AM
stuij requested review of this revision.Oct 25 2021, 3:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 25 2021, 3:15 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
ostannard accepted this revision.Oct 28 2021, 2:49 AM
ostannard added a subscriber: ostannard.

LGTM, I assume that the pre-commit test failure is because the bot hasn't applied the parent patches.

This revision is now accepted and ready to land.Oct 28 2021, 2:49 AM
stuij updated this revision to Diff 390320.Nov 29 2021, 5:52 AM

obeying clang-format

This revision was automatically updated to reflect the committed changes.