[clang] [llvm] [CodeGen][AArch64] ptrauth intrinsic to safely construct relative ptr (PR #142047)

Oliver Hunt via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 29 02:30:33 PDT 2025


================
@@ -4643,6 +4643,12 @@ def PtrauthAuthAndResign : Builtin {
   let Prototype = "void*(void*,int,void*,int,void*)";
 }
 
+def PtrauthAuthLoadRelativeAndSign : Builtin {
+  let Spellings = ["__builtin_ptrauth_auth_load_relative_and_sign"];
+  let Attributes = [CustomTypeChecking, NoThrow];
----------------
ojhunt wrote:

We need to have the type checking implemented in SemaChecking, and tests for the checking and codegen.

https://github.com/llvm/llvm-project/pull/142047


More information about the llvm-commits mailing list