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