[PATCH] D131960: [IR] Reimplement time tracing of NewPassManager by PassInstrumentation framework

dongjunduo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 5 06:19:55 PDT 2022


dongjunduo added inline comments.


================
Comment at: llvm/lib/Passes/StandardInstrumentations.cpp:1168
+    PassInstrumentationCallbacks &PIC) {
+  if (getTimeTraceProfilerInstance() == nullptr)
+    return;
----------------
@jamieschmeiser 
The callback functions of `TimeProfiler` can be registered if and only if "-ftime-trace" is given. : )


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D131960/new/

https://reviews.llvm.org/D131960



More information about the llvm-commits mailing list