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

Kiran Chandramohan via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 24 03:05:19 PDT 2025


================
@@ -130,6 +133,20 @@ static bool saveMLIRTempFile(const CompilerInvocation &ci,
 // Custom BeginSourceFileAction
 //===----------------------------------------------------------------------===//
 
+
+static llvm::cl::opt<llvm::PGOOptions::ColdFuncOpt> ClPGOColdFuncAttr(
----------------
kiranchandramohan wrote:

Adding a proper frontend driver option to both frontends is the best way forward.

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


More information about the cfe-commits mailing list