================
@@ -145,8 +161,18 @@ that also enables ThinLTO, use the following command:
       -DPGO_INSTRUMENT_LTO=Thin \
       <path to source>/llvm
 
-By default, clang will generate profile data by compiling a simple
-hello world program.  You can also tell clang to use an external
+Similarly, to build optimized Flang (along with Clang), you can use the
+following command:
+
+.. code-block:: console
+
+  $ cmake -G Ninja -C <path to source>/flang/cmake/caches/PGO.cmake \
+      -DLLVM_ENABLE_RUNTIMES="compiler-rt;flang-rt;libunwind;openmp" \
+      -DPGO_INSTRUMENT_LTO=Thin \
+      <path to source>/llvm
----------------
pawosm-arm wrote:

It is bit too much of a repetition. I'll remove it.

https://github.com/llvm/llvm-project/pull/198863
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to