Unverified Commit 0481f049 authored by Ahmed Bougacha's avatar Ahmed Bougacha Committed by GitHub
Browse files

[AArch64][PAC] Support ptrauth builtins and -fptrauth-intrinsics. (#65996)



This defines the basic set of pointer authentication clang builtins
(provided in a new header, ptrauth.h), with diagnostics and IRGen
support.  The availability of the builtins is gated on a new flag,
`-fptrauth-intrinsics`.

Note that this only includes the basic intrinsics, and notably excludes
`ptrauth_sign_constant`, `ptrauth_type_discriminator`, and
`ptrauth_string_discriminator`, which need extra logic to be fully
supported.

This also introduces clang/docs/PointerAuthentication.rst, which
describes the ptrauth model in general, in addition to these builtins.

Co-Authored-By: default avatarAkira Hatanaka <ahatanaka@apple.com>
Co-Authored-By: default avatarJohn McCall <rjmccall@apple.com>
parent 60fa2b06
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment