This is an archive of the discontinued LLVM Phabricator instance.

[Support] Allow customizing the cache pruning prefix
Needs ReviewPublic

Authored by phosek on Nov 16 2020, 11:11 AM.

Details

Reviewers
pcc
Summary

Enable changing the prefix used by the cache pruning implementation.

Diff Detail

Event Timeline

phosek created this revision.Nov 16 2020, 11:11 AM
phosek requested review of this revision.Nov 16 2020, 11:11 AM
pcc added a comment.Nov 16 2020, 11:19 AM

What is the use case?

In D91555#2397902, @pcc wrote:

What is the use case?

We would like to use the cache pruning in one of our downstream tools but we would like to use a custom prefix.

llvm/include/llvm/Support/CachePruning.h
78

Alternatively, we could also make this a part of CachePruningPolicy, I'm not sure if that would be preferable?