[llvm-branch-commits] [clang] [clang] Define ptrauth_sign_constant builtin. (PR #93904)

Ahmed Bougacha via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Jun 18 18:32:54 PDT 2024


================
@@ -938,6 +938,11 @@ class CodeGenModule : public CodeGenTypeCache {
   // Return the function body address of the given function.
   llvm::Constant *GetFunctionStart(const ValueDecl *Decl);
 
+  llvm::Constant *getConstantSignedPointer(llvm::Constant *Pointer,
+                                           unsigned Key,
+                                           llvm::Constant *StorageAddress,
+                                           llvm::Constant *ExtraDiscrim);
----------------
ahmedbougacha wrote:

Different people name these differently;  we can settle on OtherDiscriminator here yeah.  I think `extra`  as more of a common user-facing term for "discriminator", as in "extra data";  a lot of the PAC crowd coming from the security world thinks of it in those terms

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


More information about the llvm-branch-commits mailing list