diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-05-03 15:17:50 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-05-03 15:17:50 +0000 |
commit | b52eb8b22609594db49dde449b5bff13d3d88588 (patch) | |
tree | 1c8193b8e3cbd8c673e7f457bb3125c94e1f79ce /llvm/include/llvm-c | |
parent | 3bd56b3b43bdbdaecaad81d922f745a7cce0df18 (diff) | |
download | bcm5719-llvm-b52eb8b22609594db49dde449b5bff13d3d88588.tar.gz bcm5719-llvm-b52eb8b22609594db49dde449b5bff13d3d88588.zip |
Provide some default values for the ThinLTO Cache pruning
This control how the cache is pruned. The cache still has to
be explicitely enabled/disabled by providing a path.
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 268393
Diffstat (limited to 'llvm/include/llvm-c')
-rw-r--r-- | llvm/include/llvm-c/lto.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/llvm/include/llvm-c/lto.h b/llvm/include/llvm-c/lto.h index 82f7fd74178..21a1ea4598c 100644 --- a/llvm/include/llvm-c/lto.h +++ b/llvm/include/llvm-c/lto.h @@ -659,6 +659,7 @@ extern lto_bool_t thinlto_codegen_set_pic_model(thinlto_code_gen_t cg, /** * Sets the path to a directory to use as a cache storage for incremental build. + * Setting this activates caching. * * \since LTO_API_VERSION=18 */ @@ -667,7 +668,7 @@ extern void thinlto_codegen_set_cache_dir(thinlto_code_gen_t cg, /** * Sets the cache pruning interval (in seconds). A negative value disable the - * pruning (default). + * pruning. An unspecified default value will be applied. * * \since LTO_API_VERSION=18 */ @@ -678,7 +679,8 @@ extern void thinlto_codegen_set_cache_pruning_interval(thinlto_code_gen_t cg, * Sets the maximum cache size that can be persistent across build, in terms of * percentage of the available space on the the disk. Set to 100 to indicate * no limit, 50 to indicate that the cache size will not be left over half the - * available space. A value over 100 will be reduced to 100. + * available space. A value over 100 will be reduced to 100. An unspecified + * default value will be applied. * * The formula looks like: * AvailableSpace = FreeSpace + ExistingCacheSize @@ -690,7 +692,8 @@ extern void thinlto_codegen_set_final_cache_size_relative_to_available_space( thinlto_code_gen_t cg, unsigned percentage); /** - * Sets the expiration (in seconds) for an entry in the cache. + * Sets the expiration (in seconds) for an entry in the cache. An unspecified + * default value will be applied. * * \since LTO_API_VERSION=18 */ |