Go to the documentation of this file.
14 #ifndef LLVM_SUPPORT_CACHEPRUNING_H
15 #define LLVM_SUPPORT_CACHEPRUNING_H
22 template <
typename T>
class Expected;
37 std::chrono::seconds
Expiration = std::chrono::hours(7 * 24);
This is an optimization pass for GlobalISel generic memory operations.
Tagged union holding either a T or a Error.
class LLVM_NODISCARD Expected
uint64_t MaxSizeBytes
The maximum size for the cache directory in bytes.
std::chrono::seconds Expiration
The expiration for a file.
Interval Class - An Interval is a set of nodes defined such that every node in the interval has all o...
StringRef - Represent a constant reference to a string, i.e.
unsigned MaxSizePercentageOfAvailableSpace
The maximum size for the cache directory, in terms of percentage of the available space on the disk.
Policy for the pruneCache() function.
uint64_t MaxSizeFiles
The maximum number of files in the cache directory.
bool pruneCache(StringRef Path, CachePruningPolicy Policy)
Peform pruning using the supplied policy, returns true if pruning occurred, i.e.
Expected< CachePruningPolicy > parseCachePruningPolicy(StringRef PolicyStr)
Parse the given string as a cache pruning policy.