[PATCH] D138462: [llvm-mca] Fix class dominance warnings for parseCodeRegions
Michael Maitland via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 22 12:31:45 PST 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc7631606eb40: [llvm-mca] Fix class dominance warnings for parseCodeRegions (authored by michaelmaitland).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138462/new/
https://reviews.llvm.org/D138462
Files:
llvm/tools/llvm-mca/CodeRegionGenerator.h
Index: llvm/tools/llvm-mca/CodeRegionGenerator.h
===================================================================
--- llvm/tools/llvm-mca/CodeRegionGenerator.h
+++ llvm/tools/llvm-mca/CodeRegionGenerator.h
@@ -162,6 +162,11 @@
else
return static_cast<const AnalysisRegions &>(*RegionsOrErr);
}
+
+ Expected<const CodeRegions &>
+ parseCodeRegions(const std::unique_ptr<MCInstPrinter> &IP) override {
+ return AsmCodeRegionGenerator::parseCodeRegions(IP);
+ }
};
class AsmInstrumentRegionGenerator final : public InstrumentRegionGenerator,
@@ -187,6 +192,11 @@
else
return static_cast<const InstrumentRegions &>(*RegionsOrErr);
}
+
+ Expected<const CodeRegions &>
+ parseCodeRegions(const std::unique_ptr<MCInstPrinter> &IP) override {
+ return AsmCodeRegionGenerator::parseCodeRegions(IP);
+ }
};
} // namespace mca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138462.477277.patch
Type: text/x-patch
Size: 869 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221122/6fb54300/attachment.bin>
More information about the llvm-commits
mailing list