[all-commits] [llvm/llvm-project] 34c0d3: [Clang] Emit type metadata on vtables when IRPGO i...

Mingming Liu via All-commits all-commits at lists.llvm.org
Fri Nov 3 16:01:23 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 34c0d32c81bf8d7cbeadbd4e9544378d4bf85a35
      https://github.com/llvm/llvm-project/commit/34c0d32c81bf8d7cbeadbd4e9544378d4bf85a35
  Author: Mingming Liu <mingmingl at google.com>
  Date:   2023-11-03 (Fri, 03 Nov 2023)

  Changed paths:
    M clang/lib/CodeGen/CGVTables.cpp
    M clang/lib/CodeGen/MicrosoftCXXABI.cpp
    M clang/test/CodeGenCXX/type-metadata.cpp

  Log Message:
  -----------
  [Clang] Emit type metadata on vtables when IRPGO instrumentation option is on. (#70841)

The motivating use case is to have type metadata on vtables if IR instrumentation is on (without the requirement of`-fwhole-program-vtables` or `-flto`).

A related rfc is in
https://discourse.llvm.org/t/rfc-dynamic-type-profiling-and-optimizations-in-llvm/74600




More information about the All-commits mailing list