[clang] [llvm] [AArch64][PAC] Sign block addresses used in indirectbr. (PR #97647)

Ahmed Bougacha via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 22 15:41:58 PDT 2024


================
@@ -412,6 +412,15 @@ class AArch64Subtarget final : public AArch64GenSubtargetInfo {
   /// Choose a method of checking LR before performing a tail call.
   AArch64PAuth::AuthCheckMethod getAuthenticatedLRCheckMethod() const;
 
+  /// Compute the integer discriminator for a given BlockAddress constant, if
+  /// blockaddress signing is enabled (using function attribute
+  /// "ptrauth-indirect-gotos").
----------------
ahmedbougacha wrote:

I added `IfNeeded` to make the function name more explicit?

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


More information about the llvm-commits mailing list