[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:37 PDT 2025
================
@@ -20,8 +20,13 @@
#include "mlir/IR/OwningOpRef.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/IR/Module.h"
+#include "llvm/Support/CommandLine.h"
+#include "llvm/Support/PGOOptions.h"
#include <memory>
+namespace llvm {
+extern cl::opt<llvm::PGOOptions::ColdFuncOpt> ClPGOColdFuncAttr;
----------------
tarunprabhu wrote:
We probably don't want to expose this here. It is an experimental option that may be promoted to a proper frontend option at some point. It is better to leave this as a declaration in the .cpp file where this is actually used.
https://github.com/llvm/llvm-project/pull/136098
More information about the cfe-commits
mailing list