[clang] [flang] [llvm] Add IR Profile-Guided Optimization (IR PGO) support to the Flang compiler (PR #136098)

Tom Eccles via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 28 08:31:02 PDT 2025


================
@@ -19,6 +21,7 @@ template <typename T> class Expected;
 template <typename T> class IntrusiveRefCntPtr;
 class Module;
 class MemoryBufferRef;
+extern cl::opt<llvm::PGOOptions::ColdFuncOpt> ClPGOColdFuncAttr;
----------------
tblah wrote:

nit: I would put this `extern` in `BackendUtil.cpp` because it is not part of BackendUtils's public interface to other translation units.

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


More information about the cfe-commits mailing list