[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
Thu May 1 08:51:37 PDT 2025


================
@@ -33,9 +35,18 @@ enum class VectorLibrary {
   AMDLIBM             // AMD vector math library.
 };
 
+enum ProfileInstrKind {
+  ProfileNone,       // Profile instrumentation is turned off.
+  ProfileClangInstr, // Clang instrumentation to generate execution counts
+                     // to use with PGO.
+  ProfileIRInstr,    // IR level PGO instrumentation in LLVM.
+  ProfileCSIRInstr,  // IR level PGO context sensitive instrumentation in LLVM.
+};
 TargetLibraryInfoImpl *createTLII(const llvm::Triple &TargetTriple,
----------------
tarunprabhu wrote:

Nit: Newline here too please.

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


More information about the flang-commits mailing list