[llvm] [ctx_prof] Add support for ICP (PR #105469)

Snehasish Kumar via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 26 13:11:03 PDT 2024


================
@@ -105,13 +111,18 @@ class CtxProfAnalysis : public AnalysisInfoMixin<CtxProfAnalysis> {
 
 class CtxProfAnalysisPrinterPass
     : public PassInfoMixin<CtxProfAnalysisPrinterPass> {
-  raw_ostream &OS;
-
 public:
-  explicit CtxProfAnalysisPrinterPass(raw_ostream &OS) : OS(OS) {}
+  enum class PrintMode { Everything, JSON };
+  explicit CtxProfAnalysisPrinterPass(raw_ostream &OS,
+                                      PrintMode Mode = PrintMode::Everything)
----------------
snehasish wrote:

Should the default be the most verbose?

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


More information about the llvm-commits mailing list