[clang] [llvm] [arm64e] Add a builtin + intrinsic for arm64e PAuth_LR: __builtin_ptr_auth_auth_with_pc_and_resign (PR #202742)
Anatoly Trosinenko via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 2 10:31:54 PDT 2026
================
@@ -3089,6 +3089,18 @@ def int_ptrauth_resign : Intrinsic<[llvm_i64_ty],
[IntrNoMem, ImmArg<ArgIndex<1>>,
ImmArg<ArgIndex<3>>]>;
+// Authenticate a signed pointer using a PC-based signature and resign it.
+// The second (key) and third (discriminator) arguments specify the signing
+// schema used for authenticating.
+// The fourth argument specifies the PC value used for authenticating.
+// The fifth and sixth arguments specify the schema used for resigning.
+// The signature must be valid.
+def int_ptrauth_auth_with_pc_and_resign : Intrinsic<[llvm_i64_ty],
+ [llvm_i64_ty, llvm_i32_ty, llvm_i64_ty,
+ llvm_i64_ty, llvm_i32_ty, llvm_i64_ty],
+ [IntrNoMem, ImmArg<ArgIndex<1>>,
+ ImmArg<ArgIndex<4>>]>;
----------------
atrosinenko wrote:
Very minor nitpick: these four lines are indented with an extra space :)
https://github.com/llvm/llvm-project/pull/202742
More information about the cfe-commits
mailing list