[ThinLTO] Summarize vcall_visibility metadata
authorTeresa Johnson <tejohnson@google.com>
Thu, 26 Dec 2019 17:31:43 +0000 (09:31 -0800)
committerTeresa Johnson <tejohnson@google.com>
Thu, 23 Jan 2020 21:19:56 +0000 (13:19 -0800)
commit9c2eb220edd5e831a17bfbde65dcc49e402d7540
tree5819aaecc168ea09ca8cafb8fcc4af80ef21db43
parentcc14de88da27a8178976972bdc8211c31f7ca9ae
[ThinLTO] Summarize vcall_visibility metadata

Summary:
Second patch in series to support Safe Whole Program Devirtualization
Enablement, see RFC here:
http://lists.llvm.org/pipermail/llvm-dev/2019-December/137543.html

Summarize vcall_visibility metadata in ThinLTO global variable summary.

Depends on D71907.

Reviewers: pcc, evgeny777, steven_wu

Subscribers: mehdi_amini, Prazek, inglorion, hiraditya, dexonsmith, arphaman, ostannard, llvm-commits, cfe-commits, davidxl

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D71911
clang/test/CodeGenCXX/vcall-visibility-metadata.cpp
llvm/include/llvm/IR/ModuleSummaryIndex.h
llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
llvm/lib/AsmParser/LLLexer.cpp
llvm/lib/AsmParser/LLParser.cpp
llvm/lib/AsmParser/LLToken.h
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
llvm/lib/IR/AsmWriter.cpp
llvm/test/Assembler/thinlto-vtable-summary.ll