reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/Support/CachePruning.h
   67 Expected<CachePruningPolicy> parseCachePruningPolicy(StringRef PolicyStr);

References

tools/gold/gold-plugin.cpp
 1139     CachePruningPolicy policy = check(parseCachePruningPolicy(options::cache_policy));
tools/lld/COFF/Driver.cpp
 1429         parseCachePruningPolicy(arg->getValue()),
tools/lld/ELF/Driver.cpp
  925       parseCachePruningPolicy(args.getLastArgValue(OPT_thinlto_cache_policy)),
tools/lld/wasm/Driver.cpp
  343       parseCachePruningPolicy(args.getLastArgValue(OPT_thinlto_cache_policy)),
unittests/Support/CachePruningTest.cpp
   16   auto P = parseCachePruningPolicy("");
   24   auto P = parseCachePruningPolicy("prune_interval=1s");
   27   P = parseCachePruningPolicy("prune_interval=2m");
   30   P = parseCachePruningPolicy("prune_interval=3h");
   36   auto P = parseCachePruningPolicy("prune_after=1s");
   42   auto P = parseCachePruningPolicy("cache_size=100%");
   49   auto P = parseCachePruningPolicy("cache_size_bytes=1");
   53   P = parseCachePruningPolicy("cache_size_bytes=2k");
   57   P = parseCachePruningPolicy("cache_size_bytes=3m");
   61   P = parseCachePruningPolicy("cache_size_bytes=4G");
   68   auto P = parseCachePruningPolicy("prune_after=1s:cache_size=50%");
   77             toString(parseCachePruningPolicy("prune_interval=").takeError()));
   79             toString(parseCachePruningPolicy("prune_interval=foos").takeError()));
   81             toString(parseCachePruningPolicy("prune_interval=24x").takeError()));
   83             toString(parseCachePruningPolicy("cache_size=foo").takeError()));
   85             toString(parseCachePruningPolicy("cache_size=foo%").takeError()));
   87             toString(parseCachePruningPolicy("cache_size=101%").takeError()));
   90       toString(parseCachePruningPolicy("cache_size_bytes=foo").takeError()));
   93       toString(parseCachePruningPolicy("cache_size_bytes=foom").takeError()));
   95             toString(parseCachePruningPolicy("foo=bar").takeError()));