[llvm] [ctx_prof] Add Inlining support (PR #106154)

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 29 16:52:39 PDT 2024


================
@@ -29,6 +29,15 @@ cl::opt<std::string>
     UseCtxProfile("use-ctx-profile", cl::init(""), cl::Hidden,
                   cl::desc("Use the specified contextual profile file"));
 
+static cl::opt<CtxProfAnalysisPrinterPass::PrintMode> PrintLevel(
+    "ctx-profile-printer-level",
+    cl::init(CtxProfAnalysisPrinterPass::PrintMode::Everything), cl::Hidden,
----------------
mtrofin wrote:

When using in .ll tests, we get the whole dump by default. When used in unittests, it's used to get the json bit out.

I'm trying to see how I can move some unittests (the ICP one, mainly) to .ll.

If it's too weird, I can switch everything to one of the 2 cases and patch accordingly.

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


More information about the llvm-commits mailing list