llvm::parseCachePruningPolicy

Parse the given string as a cache pruning policy.

Synopsis

Declared in <llvm/Support/CachePruning.h>

Expected<CachePruningPolicy>
parseCachePruningPolicy(StringRef PolicyStr);

Description

Defaults are taken from a default constructed CachePruningPolicy object. For example: "prune_interval=30s:prune_after=24h:cache_size=50%" which means a pruning interval of 30 seconds, expiration time of 24 hours and maximum cache size of 50% of available disk space.

Return Value

The parsed CachePruningPolicy, or an Error if PolicyStr is invalid.

Parameters

NameDescription
PolicyStrString describing the pruning policy to parse.