Restore "[MemProf] ThinLTO summary support" with more fixes
authorTeresa Johnson <tejohnson@google.com>
Wed, 16 Nov 2022 15:05:11 +0000 (07:05 -0800)
committerTeresa Johnson <tejohnson@google.com>
Wed, 16 Nov 2022 17:42:41 +0000 (09:42 -0800)
commit9eacbba290d87ba23796e3ba6a57138d99aca9e5
tree94d26a2ffeea7e5c5b08d6f5003690db77fe18f3
parentc2600244fc142c82c6d4cebf87d2143618b914f7
Restore "[MemProf] ThinLTO summary support" with more fixes

This restores commit 98ed423361de2f9dc0113a31be2aa04524489ca9 and
follow on fix 00c22351ba697dbddb4b5bf0ad94e4bcea4b316b, which were
reverted in 5d938eb6f79b16f55266dd23d5df831f552ea082 due to an
MSVC bot failure. I've included a fix for that failure.

Differential Revision: https://reviews.llvm.org/D135714
21 files changed:
llvm/include/llvm/Analysis/MemoryProfileInfo.h
llvm/include/llvm/AsmParser/LLParser.h
llvm/include/llvm/AsmParser/LLToken.h
llvm/include/llvm/AsmParser/Parser.h
llvm/include/llvm/Bitcode/BitcodeReader.h
llvm/include/llvm/Bitcode/LLVMBitCodes.h
llvm/include/llvm/IR/ModuleSummaryIndex.h
llvm/include/llvm/IR/ModuleSummaryIndexYAML.h
llvm/lib/Analysis/MemoryProfileInfo.cpp
llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
llvm/lib/AsmParser/LLLexer.cpp
llvm/lib/AsmParser/LLParser.cpp
llvm/lib/AsmParser/Parser.cpp
llvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
llvm/lib/IR/AsmWriter.cpp
llvm/lib/LTO/LTO.cpp
llvm/test/Assembler/thinlto-memprof-summary.ll [new file with mode: 0644]
llvm/test/ThinLTO/X86/memprof-summary.ll [new file with mode: 0644]
llvm/unittests/Analysis/MemoryProfileInfoTest.cpp