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

Tarun Prabhu via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 28 08:24:38 PDT 2025


================
@@ -13,9 +13,14 @@
 #ifndef LLVM_FRONTEND_DRIVER_CODEGENOPTIONS_H
 #define LLVM_FRONTEND_DRIVER_CODEGENOPTIONS_H
 
+#include "llvm/ProfileData/InstrProfCorrelator.h"
+#include <string>
 namespace llvm {
 class Triple;
 class TargetLibraryInfoImpl;
+extern llvm::cl::opt<bool> DebugInfoCorrelate;
----------------
tarunprabhu wrote:

Is it necessary to have this in a header? Is it used anywhere outside CodeGenOptions.cpp?

Please see the [visibility](https://llvm.org/docs/CodingStandards.html#restrict-visibility) section in the LLVM coding standards document for a discussion of this.

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


More information about the cfe-commits mailing list