Skip to content

Commit 4aee501

Browse files
committed
[gn] port c9f5734 (TargetLibraryInfo.inc)
1 parent 0e1cb2d commit 4aee501

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import("//llvm/utils/TableGen/tablegen.gni")
2+
3+
tablegen("TargetLibraryInfo") {
4+
args = [ "-gen-target-library-info" ]
5+
}

llvm/utils/gn/secondary/llvm/lib/Analysis/BUILD.gn

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
static_library("Analysis") {
22
output_name = "LLVMAnalysis"
33
public_deps = [
4+
# Must be a public_dep because Analysis's headers include
5+
# TargetLibraryInfo.inc.
6+
"//llvm/include/llvm/Analysis:TargetLibraryInfo",
47
# Must be a public_dep because Analysis's headers include llvm-config.h.
58
"//llvm/include/llvm/Config:llvm-config",
69
]

llvm/utils/gn/secondary/llvm/utils/TableGen/Basic/BUILD.gn

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ source_set("Basic") {
1515
"SDNodeProperties.cpp",
1616
"TableGen.cpp",
1717
"TargetFeaturesEmitter.cpp",
18+
"TargetLibraryInfoEmitter.cpp",
1819
"VTEmitter.cpp",
1920
]
2021
}

0 commit comments

Comments
 (0)