OSDN Git Service

[ThinLTO] Added a couple of C LTO API interfaces to control the cache policy.
authorEkaterina Romanova <katya_romanova@playstation.sony.com>
Fri, 2 Mar 2018 03:51:27 +0000 (03:51 +0000)
committerEkaterina Romanova <katya_romanova@playstation.sony.com>
Fri, 2 Mar 2018 03:51:27 +0000 (03:51 +0000)
commit76899c61ced16664d1f7db46749e3df99abb4911
tree84cf140ec41c3d02987d840448a1be05a21f55b0
parent738d9f9859222296cf88624109dcc52ffd040588
[ThinLTO] Added a couple of C LTO API interfaces to control the cache policy.
- thinlto_codegen_set_cache_size_bytes to control the absolute size of cache directory.
- thinlto_codegen_set_cache_size_files the size and amount of files in cache directory.
These functions have been supported in C++ LTO API for a long time, but were absent in C LTO API.

Differential Revision: https://reviews.llvm.org/D42446

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@326537 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm-c/lto.h
include/llvm/LTO/legacy/ThinLTOCodeGenerator.h
test/ThinLTO/X86/cache.ll
tools/llvm-lto/llvm-lto.cpp
tools/lto/lto.cpp
tools/lto/lto.exports