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

Ahmed Bougacha via All-commits all-commits at lists.llvm.org
Tue Jun 18 13:55:40 PDT 2024


  Branch: refs/heads/users/ahmedbougacha/ptrauth-string-discriminator
  Home:   https://github.com/llvm/llvm-project
  Commit: 607592e7071a604fc63252cb3686545ed1f1b0b8
      https://github.com/llvm/llvm-project/commit/607592e7071a604fc63252cb3686545ed1f1b0b8
  Author: Ahmed Bougacha <ahmed at bougacha.org>
  Date:   2024-06-18 (Tue, 18 Jun 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>


  Commit: 8e948733ffcd82e43f72a76d6595ae6a6173f500
      https://github.com/llvm/llvm-project/commit/8e948733ffcd82e43f72a76d6595ae6a6173f500
  Author: Ahmed Bougacha <ahmed at bougacha.org>
  Date:   2024-06-18 (Tue, 18 Jun 2024)

  Changed paths:
    M clang/docs/PointerAuthentication.rst

  Log Message:
  -----------
  Document ptrauth_string_discriminator in clang/docs/PointerAuthentication.


  Commit: e41501874dcc45ab57dba09cb0a08c4f68d0677b
      https://github.com/llvm/llvm-project/commit/e41501874dcc45ab57dba09cb0a08c4f68d0677b
  Author: Ahmed Bougacha <ahmed at bougacha.org>
  Date:   2024-06-18 (Tue, 18 Jun 2024)

  Changed paths:
    M clang/lib/AST/ExprConstant.cpp
    M clang/lib/Sema/SemaChecking.cpp
    M clang/test/CodeGen/ptrauth-intrinsics.c
    M clang/test/Sema/ptrauth.c

  Log Message:
  -----------
  Address review feedback.

- add missing sema test
- also test ELF codegen for intrinsics
- various capitalization and type nits


  Commit: a70e589bb5de3b6658b25a74db0f339c1e35157d
      https://github.com/llvm/llvm-project/commit/a70e589bb5de3b6658b25a74db0f339c1e35157d
  Author: Ahmed Bougacha <ahmed at bougacha.org>
  Date:   2024-06-18 (Tue, 18 Jun 2024)

  Changed paths:
    M clang/lib/Sema/SemaChecking.cpp

  Log Message:
  -----------
  Format.


  Commit: 30be782dc331f8a8f02aed1641042e99bad680a6
      https://github.com/llvm/llvm-project/commit/30be782dc331f8a8f02aed1641042e99bad680a6
  Author: Ahmed Bougacha <ahmed at bougacha.org>
  Date:   2024-06-18 (Tue, 18 Jun 2024)

  Changed paths:
    M clang/lib/AST/ExprConstant.cpp

  Log Message:
  -----------
  Adopt renamed getPointerAuthStableSipHash.


  Commit: 11e7dcc489e2159c5747b57e3d1379764128c3dc
      https://github.com/llvm/llvm-project/commit/11e7dcc489e2159c5747b57e3d1379764128c3dc
  Author: Ahmed Bougacha <ahmed at bougacha.org>
  Date:   2024-06-18 (Tue, 18 Jun 2024)

  Changed paths:
    M clang/docs/PointerAuthentication.rst
    M clang/lib/Headers/ptrauth.h
    M clang/test/Sema/ptrauth.c

  Log Message:
  -----------
  Address review feedback.

- tweaks to header/doc comments
- add test for wide string literal


Compare: https://github.com/llvm/llvm-project/compare/8e7d4bc0f98e...11e7dcc489e2

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