Page MenuHomePhabricator

[llvm-cov] Introduce -path-equivalence-regex
AbandonedPublic

Authored by tunz on Feb 15 2021, 2:11 AM.

Details

Reviewers
None
Summary

Introduce a new option -path-equivalence-regex=<from>,<to> for llvm-cov show so that it can group the same file represented as multiple different paths in the coverage profile data. Unlike -path-equivalence, this new option takes <from> as a regular expression, remaps matching paths into the given <to> path, and generates outputs with the remapped paths.

More discussions and explanations are https://lists.llvm.org/pipermail/llvm-dev/2021-February/148560.html

Diff Detail

Event Timeline

tunz requested review of this revision.Feb 15 2021, 2:11 AM
tunz created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 15 2021, 2:11 AM
tunz updated this revision to Diff 323745.Feb 15 2021, 7:25 AM

Add a test and do not break existing tests.

Hi @tunz - mind adding a patch summary, and some documentation that describes this feature?

tunz added a comment.Feb 15 2021, 10:26 AM

Hi @vsk. Sorry for submitting this patch without any explanation. I was learning and testing this new environment, and was writing an email to llvm-dev.
I've just sent the email to the mailing group. https://lists.llvm.org/pipermail/llvm-dev/2021-February/148560.html

tunz edited the summary of this revision. (Show Details)Feb 15 2021, 10:36 AM
tunz updated this revision to Diff 323797.Feb 15 2021, 10:52 AM

Add -path-equivalence-regex to the llvm-cov doc.

tunz abandoned this revision.Feb 19 2021, 9:16 AM

Abandon this since https://reviews.llvm.org/D95753 addresses our issue.