[all-commits] [llvm/llvm-project] 61be7a: [clang] Define ptrauth_string_discriminator builtin.

Ahmed Bougacha via All-commits all-commits at lists.llvm.org
Thu May 30 17:31:57 PDT 2024


  Branch: refs/heads/users/ahmedbougacha/ptrauth-string-discriminator
  Home:   https://github.com/llvm/llvm-project
  Commit: 61be7a922397d66773a8f4a6e476ea321f52f00c
      https://github.com/llvm/llvm-project/commit/61be7a922397d66773a8f4a6e476ea321f52f00c
  Author: Ahmed Bougacha <ahmed at bougacha.org>
  Date:   2024-05-30 (Thu, 30 May 2024)

  Changed paths:
    M clang/include/clang/Basic/Builtins.td
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/AST/ExprConstant.cpp
    M clang/lib/Headers/ptrauth.h
    M clang/lib/Sema/SemaChecking.cpp
    M clang/test/CodeGen/ptrauth-intrinsics.c
    M clang/test/Sema/ptrauth-intrinsics-macro.c

  Log Message:
  -----------
  [clang] Define ptrauth_string_discriminator builtin.

This exposes the ABI-stable hash function that allows computing a 16-bit
discriminator from a constant string.

This allows manually matching the implicit string discriminators
computed in the ABI (e.g., from mangled names for vtable pointer/entry
signing), as well as enabling the use of interesting discriminators when
manually annotating specific pointers with the __ptrauth qualifier.

Co-Authored-By: John McCall <rjmccall at apple.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list