[llvm] [llvm][ctx_profile] Add instrumentation (PR #90136)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 29 21:18:40 PDT 2024


================
@@ -333,6 +334,16 @@ extern cl::opt<bool> EnableVTableValueProfiling;
 extern cl::opt<InstrProfCorrelator::ProfCorrelatorKind> ProfileCorrelate;
 } // namespace llvm
 
+bool shouldInstrumentEntryBB() {
+  return PGOInstrumentEntry ||
+         PGOCtxProfLoweringPass::isContextualIRPGOEnabled();
+}
+
+bool isValueProfilingDisabled() {
+  return DisableValueProfiling ||
+         PGOCtxProfLoweringPass::isContextualIRPGOEnabled();
----------------
teresajohnson wrote:

Document why e.g. with a fixme?

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


More information about the llvm-commits mailing list