[llvm] e6eaacb - [gn build] add llvm-profgen to gn build

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 21 08:50:56 PDT 2021


Author: Nico Weber
Date: 2021-04-21T11:50:41-04:00
New Revision: e6eaacbf0bd0c76a4fbfbd30c6159f57a89b3480

URL: https://github.com/llvm/llvm-project/commit/e6eaacbf0bd0c76a4fbfbd30c6159f57a89b3480
DIFF: https://github.com/llvm/llvm-project/commit/e6eaacbf0bd0c76a4fbfbd30c6159f57a89b3480.diff

LOG: [gn build] add llvm-profgen to gn build

Didn't notice it missing due to https://reviews.llvm.org/D89707#2705110

Added: 
    llvm/utils/gn/secondary/llvm/tools/llvm-profgen/BUILD.gn

Modified: 
    llvm/utils/gn/secondary/llvm/test/BUILD.gn

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/llvm/test/BUILD.gn b/llvm/utils/gn/secondary/llvm/test/BUILD.gn
index c381df75be03..c1f2cd1c69ed 100644
--- a/llvm/utils/gn/secondary/llvm/test/BUILD.gn
+++ b/llvm/utils/gn/secondary/llvm/test/BUILD.gn
@@ -255,6 +255,7 @@ group("test") {
     "//llvm/tools/llvm-opt-report",
     "//llvm/tools/llvm-pdbutil",
     "//llvm/tools/llvm-profdata",
+    "//llvm/tools/llvm-profgen",
     "//llvm/tools/llvm-rc",
     "//llvm/tools/llvm-readobj:symlinks",
     "//llvm/tools/llvm-reduce",

diff  --git a/llvm/utils/gn/secondary/llvm/tools/llvm-profgen/BUILD.gn b/llvm/utils/gn/secondary/llvm/tools/llvm-profgen/BUILD.gn
new file mode 100644
index 000000000000..e646ef817a71
--- /dev/null
+++ b/llvm/utils/gn/secondary/llvm/tools/llvm-profgen/BUILD.gn
@@ -0,0 +1,23 @@
+executable("llvm-profgen") {
+  deps = [
+    "//llvm/lib/DebugInfo/Symbolize",
+    "//llvm/lib/IR",
+    "//llvm/lib/MC",
+    "//llvm/lib/MC/MCDisassembler",
+    "//llvm/lib/Object",
+    "//llvm/lib/ProfileData",
+    "//llvm/lib/Support",
+    "//llvm/lib/Target:AllTargetsDescs",
+    "//llvm/lib/Target:AllTargetsDisassemblers",
+    "//llvm/lib/Target:AllTargetsInfos",
+    "//llvm/lib/Transforms/IPO",
+  ]
+  sources = [
+    "CSPreInliner.cpp",
+    "PerfReader.cpp",
+    "ProfileGenerator.cpp",
+    "ProfiledBinary.cpp",
+    "PseudoProbe.cpp",
+    "llvm-profgen.cpp",
+  ]
+}


        


More information about the llvm-commits mailing list