[all-commits] [llvm/llvm-project] a93367: [clang][PAC] Add __builtin_get_vtable_pointer

Oliver Hunt via All-commits all-commits at lists.llvm.org
Tue May 13 13:45:02 PDT 2025


  Branch: refs/heads/users/ojhunt/builtin-get-vtable-pointer
  Home:   https://github.com/llvm/llvm-project
  Commit: a933679801bde89b53584c4c65118658477db4da
      https://github.com/llvm/llvm-project/commit/a933679801bde89b53584c4c65118658477db4da
  Author: Oliver Hunt <oliver at apple.com>
  Date:   2025-05-13 (Tue, 13 May 2025)

  Changed paths:
    M clang/docs/LanguageExtensions.rst
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/Basic/Builtins.td
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/Sema/SemaChecking.cpp
    A clang/test/CodeGenCXX/builtin-get-vtable-pointer.cpp
    A clang/test/SemaCXX/builtin-get-vtable-pointer.cpp

  Log Message:
  -----------
  [clang][PAC] Add __builtin_get_vtable_pointer

With pointer authentication it becomes non-trivial to correctly
load the vtable pointer of a polymorphic object.

__builtin_get_vtable_pointer is a function that performs the
load and performs the appropriate authentication operations if
necessary.



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