aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/LTO/Caching.cpp
AgeCommit message (Collapse)AuthorFilesLines
2016-08-26[ThinLTO] Move loading of cache entry to clientTeresa Johnson1-8/+2
Summary: Have the cache pass back the path to the cache entry when it is ready to be loaded, instead of a buffer. For gold-plugin we can simply pass this file back to gold directly, which avoids expensive writing of a separate tmp file. Ensure the cache entry is not deleted on cleanup by adjusting the setting of the IsTemporary flags. Moved the loading of the buffer into llvm-lto2 to maintain current behavior. Reviewers: mehdi_amini Subscribers: llvm-commits, mehdi_amini Differential Revision: https://reviews.llvm.org/D23946 llvm-svn: 279883
2016-08-23[ThinLTO] Add caching to the new LTO APIMehdi Amini1-0/+104
Add the ability to plug a cache on the LTO API. I tried to write such that a linker implementation can control the cache backend. This is intrusive and I'm not totally happy with it, but I can't figure out a better design right now. Differential Revision: https://reviews.llvm.org/D23599 llvm-svn: 279576