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

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

Do you mean to let flang and clang reuse this definition? But this code of 
yours is defined in clang, and I need to let Flang link Clang's 
`BackendUtil.cpp`, which may cause some problems. So I put this definition in 
llvm namespace : `llvm/Frontend/Driver/CodeGenOptions.h`.This way I don't need 
to copy the code all over again in flang. What do you think about this?

https://github.com/llvm/llvm-project/pull/136098
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to