[clang] [flang] Add IR Profile-Guided Optimization (IR PGO) support to the Flang compiler (PR #136098)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 23 19:22:01 PDT 2025
================
@@ -892,6 +909,20 @@ static void generateMachineCodeOrAssemblyImpl(clang::DiagnosticsEngine &diags,
delete tlii;
}
+
+// Default filename used for profile generation.
+namespace llvm {
+ extern llvm::cl::opt<bool> DebugInfoCorrelate;
+ extern llvm::cl::opt<InstrProfCorrelator::ProfCorrelatorKind> ProfileCorrelate;
+
+
+std::string getDefaultProfileGenName() {
----------------
fanju110 wrote:
Thank you for your review.
The `getDefaultProfileGenName` function in the original clang is defined in an anonymous namespace and cannot be directly reused in flang. If I reuse this function, I may need to change the source code of clang, is this appropriate?
https://github.com/llvm/llvm-project/pull/136098
More information about the cfe-commits
mailing list