[llvm-mca] Fix class dominance warnings for parseCodeRegions
authorMichael Maitland <michaeltmaitland@gmail.com>
Tue, 22 Nov 2022 00:02:47 +0000 (16:02 -0800)
committerMichael Maitland <michaeltmaitland@gmail.com>
Tue, 22 Nov 2022 20:31:01 +0000 (12:31 -0800)
commitc7631606eb40d445615d3fc6f6599936463bac36
tree5363fc2652473609e4efe2189bf1312f7c9956a2
parent8271aa5335668a1dc62168a4e90b4554bd3a0ca7
[llvm-mca] Fix class dominance warnings for parseCodeRegions

Fixes issue [59091](https://github.com/llvm/llvm-project/issues/59091).

`CodeRegionGenerator::parseCodeRegions` is implemented by `AsmCodeRegionGenerator`.
If it were to be implemented in `AnalysisRegionGenerator` or `InstrumentRegionGenerator`,
then `parseCodeRegions` from an `AsmAnalysisRegionGenerator` or `AsmInstrumentRegionGenerator`
object would be ambiguous. To solve this, `AsmAnalysisRegionGenerator` and
`AsmInstrumentRegionGenerator` qualify their call to `AsmCodeRegionGenerator::parseCodeRegions`.

Differential Revision: https://reviews.llvm.org/D138462
llvm/tools/llvm-mca/CodeRegionGenerator.h