[Support][ThinLTO] Move ThinLTO caching to LLVM Support library
authorNoah Shutty <shutty@google.com>
Tue, 19 Oct 2021 01:40:57 +0000 (18:40 -0700)
committerPetr Hosek <phosek@google.com>
Tue, 19 Oct 2021 01:57:25 +0000 (18:57 -0700)
commite678c51177102845c93529d457b020f969125373
tree62c816f4dda00dfa5519f6773a52e75759ba645b
parentfacff468b6c47b954aebd297c90bd44accaa54c6
[Support][ThinLTO] Move ThinLTO caching to LLVM Support library

We would like to move ThinLTO’s battle-tested file caching mechanism to
the LLVM Support library so that we can use it elsewhere in LLVM.

Patch By: noajshu

Differential Revision: https://reviews.llvm.org/D111371
19 files changed:
clang/docs/tools/clang-formatted-files.txt
clang/lib/CodeGen/BackendUtil.cpp
lld/COFF/LTO.cpp
lld/ELF/LTO.cpp
lld/MachO/LTO.cpp
lld/wasm/LTO.cpp
llvm/include/llvm/LTO/Caching.h [deleted file]
llvm/include/llvm/LTO/LTO.h
llvm/include/llvm/LTO/legacy/LTOCodeGenerator.h
llvm/include/llvm/Support/Caching.h [new file with mode: 0644]
llvm/lib/LTO/CMakeLists.txt
llvm/lib/LTO/LTOCodeGenerator.cpp
llvm/lib/Support/CMakeLists.txt
llvm/lib/Support/Caching.cpp [moved from llvm/lib/LTO/Caching.cpp with 86% similarity]
llvm/tools/gold/gold-plugin.cpp
llvm/tools/llvm-lto/llvm-lto.cpp
llvm/tools/llvm-lto2/llvm-lto2.cpp
llvm/utils/gn/secondary/llvm/lib/LTO/BUILD.gn
llvm/utils/gn/secondary/llvm/lib/Support/BUILD.gn