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

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


================
@@ -28,6 +28,7 @@
 #include "flang/Semantics/unparse-with-symbols.h"
 #include "flang/Support/default-kinds.h"
 #include "flang/Tools/CrossToolHelpers.h"
+#include "clang/CodeGen/BackendUtil.h"
----------------
tarunprabhu wrote:

We should not include clang headers unless necessary. If this was to obtain the declaration of `ClPGOColdFuncAttr`, it may be better to expose it in `llvm/Frontend/CodeGenOptions.h` and include that header here instead

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


More information about the flang-commits mailing list