[ThinLTO] Add FunctionAttrs to ThinLTO index
authorCharles Saternos <charles.saternos@gmail.com>
Fri, 4 Aug 2017 16:00:58 +0000 (16:00 +0000)
committerCharles Saternos <charles.saternos@gmail.com>
Fri, 4 Aug 2017 16:00:58 +0000 (16:00 +0000)
commit75da10d1b2db41f6789846ff499e2842cfe5de8e
tree18a69ad82b41d393cd3766c85cbb2a6c25b049f0
parent79e7f6b3e394ad2f3b58581085847b4bb11fdc75
[ThinLTO] Add FunctionAttrs to ThinLTO index

Adds function attributes to index: ReadNone, ReadOnly, NoRecurse, NoAlias. This attributes will be used for future ThinLTO optimizations that will propagate function attributes across modules.

llvm-svn: 310061
14 files changed:
llvm/include/llvm/IR/ModuleSummaryIndex.h
llvm/include/llvm/IR/ModuleSummaryIndexYAML.h
llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
llvm/test/Bitcode/summary_version.ll
llvm/test/Bitcode/thinlto-alias.ll
llvm/test/Bitcode/thinlto-alias2.ll
llvm/test/Bitcode/thinlto-function-summary-callgraph-pgo.ll
llvm/test/Bitcode/thinlto-function-summary-callgraph-profile-summary.ll
llvm/test/Bitcode/thinlto-function-summary-callgraph-sample-profile-summary.ll
llvm/test/Bitcode/thinlto-function-summary-callgraph.ll
llvm/test/Bitcode/thinlto-function-summary-functionattrs.ll [new file with mode: 0644]
llvm/test/Bitcode/thinlto-function-summary-refgraph.ll