[llvm] Add llvm-profgen to the list of toolchain tools (PR #120106)

Tim Creech via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 16 08:30:10 PST 2024


https://github.com/tcreech-intel created https://github.com/llvm/llvm-project/pull/120106

This tool is used for SPGO and is invoked directly by users as described in the Clang User's Manual[^1].

This change will include llvm-profgen in installations configured with LLVM_INSTALL_TOOLCHAIN_ONLY, such as those provided by LLVM's executable Windows installers. This is useful now that LLVM can perform SPGO on Windows.

[^1]: https://clang.llvm.org/docs/UsersManual.html#using-sampling-profilers

>From a8e3879e3e87ad7ee09b60d179beb41ce650caca Mon Sep 17 00:00:00 2001
From: Tim Creech <timothy.m.creech at intel.com>
Date: Mon, 16 Dec 2024 11:13:37 -0500
Subject: [PATCH] Add llvm-profgen to the list of toolchain tools

This tool is used for SPGO and is invoked directly by users as described
in the Clang User's Manual[^1].

This change will include llvm-profgen in installations configured with
LLVM_INSTALL_TOOLCHAIN_ONLY, such as those provided by LLVM's executable
Windows installers. This is useful now that LLVM can perform SPGO on
Windows.

[^1]: https://clang.llvm.org/docs/UsersManual.html#using-sampling-profilers
---
 llvm/cmake/modules/AddLLVM.cmake | 1 +
 1 file changed, 1 insertion(+)

diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
index 6cf0ee1a54dbdb..54a54db338e695 100644
--- a/llvm/cmake/modules/AddLLVM.cmake
+++ b/llvm/cmake/modules/AddLLVM.cmake
@@ -1446,6 +1446,7 @@ if(NOT LLVM_TOOLCHAIN_TOOLS)
     llvm-strings
     llvm-strip
     llvm-profdata
+    llvm-profgen
     llvm-symbolizer
     # symlink version of some of above tools that are enabled by
     # LLVM_INSTALL_BINUTILS_SYMLINKS.



More information about the llvm-commits mailing list