[Clang] Emit type metadata on vtables when IRPGO instrumentation option is on. (...
commit34c0d32c81bf8d7cbeadbd4e9544378d4bf85a35
authorMingming Liu <mingmingl@google.com>
Fri, 3 Nov 2023 23:01:10 +0000 (3 16:01 -0700)
committerGitHub <noreply@github.com>
Fri, 3 Nov 2023 23:01:10 +0000 (3 16:01 -0700)
tree4cdbe40bae80f180b848eade57943bbabed4d695
parentc7a7a43dbb42af725979856f7e922149b7b594fa
[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
clang/lib/CodeGen/CGVTables.cpp
clang/lib/CodeGen/MicrosoftCXXABI.cpp
clang/test/CodeGenCXX/type-metadata.cpp