[clang] [flang] [FLANG][Driver] Support -fno-profile-generate and -fprofile-generate=<dir> in flang (PR #216643)
Tarun Prabhu via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 24 06:17:50 PDT 2026
================
@@ -497,8 +497,18 @@ static void parseCodeGenArgs(Fortran::frontend::CodeGenOptions &opts,
opts.IsPIE = 1;
}
- if (args.hasArg(clang::options::OPT_fprofile_generate)) {
- opts.setProfileInstr(llvm::driver::ProfileInstrKind::ProfileIRInstr);
+ if (const llvm::opt::Arg *a =
----------------
tarunprabhu wrote:
I think it's reasonable to merge this now and refactor it when support for the other PGO-related options is added. But please consider adding an actual TODO message to the code just so we don't forget. We should try to avoid duplicating too much code before we refactor.
https://github.com/llvm/llvm-project/pull/216643
More information about the cfe-commits
mailing list