[llvm] [NewPM][Instrumentation] Support `MachineOptimizationRemarkEmitter` (PR #90563)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 29 23:08:47 PDT 2024
================
@@ -1329,6 +1342,51 @@ struct PreservedModuleHashAnalysis
AnalysisKey PreservedModuleHashAnalysis::Key;
+struct MachineInstrCounterAnalysis
+ : public AnalysisInfoMixin<MachineInstrCounterAnalysis> {
+ static AnalysisKey Key;
+
+ struct Result {
+ bool invalidate(MachineFunction &MF, const PreservedAnalyses &,
+ MachineFunctionAnalysisManager::Invalidator &) {
+ return false;
----------------
paperchalice wrote:
Oops, I mixed with another method by emitting them when this analysis is invalidated.😓
https://github.com/llvm/llvm-project/pull/90563
More information about the llvm-commits
mailing list