[llvm] [NewPM][Instrumentation] Support `MachineOptimizationRemarkEmitter` (PR #90563)

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 30 19:16:13 PDT 2024


================
@@ -2493,6 +2551,79 @@ void PrintCrashIRInstrumentation::registerCallbacks(
       });
 }
 
+void InstrCountChangedReporter::registerCallbacks(
+    PassInstrumentationCallbacks &PIC, ModuleAnalysisManager &MAM) {
+  PIC.registerBeforeNonSkippedPassCallback([this, &MAM, Registered = false](
----------------
paperchalice wrote:

Oh, I see the `LLVMContext` in constructor of `StandardInstrumentations`.

https://github.com/llvm/llvm-project/pull/90563


More information about the llvm-commits mailing list