1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
| import("//llvm/utils/TableGen/tablegen.gni")
tablegen("NVPTXGenAsmWriter") {
visibility = [ ":MCTargetDesc" ]
args = [ "-gen-asm-writer" ]
td_file = "../NVPTX.td"
}
tablegen("NVPTXGenInstrInfo") {
visibility = [ ":MCTargetDesc" ]
args = [ "-gen-instr-info" ]
td_file = "../NVPTX.td"
}
tablegen("NVPTXGenRegisterInfo") {
visibility = [ ":MCTargetDesc" ]
args = [ "-gen-register-info" ]
td_file = "../NVPTX.td"
}
tablegen("NVPTXGenSubtargetInfo") {
visibility = [ ":MCTargetDesc" ]
args = [ "-gen-subtarget" ]
td_file = "../NVPTX.td"
}
static_library("MCTargetDesc") {
output_name = "LLVMNVPTXDesc"
# This should contain tablegen targets generating .inc files included
# by other targets. .inc files only used by .cpp files in this directory
# should be in deps on the static_library instead.
public_deps = [
":NVPTXGenInstrInfo",
":NVPTXGenRegisterInfo",
":NVPTXGenSubtargetInfo",
]
deps = [
":NVPTXGenAsmWriter",
"//llvm/lib/MC",
"//llvm/lib/Support",
"//llvm/lib/Target/NVPTX/TargetInfo",
]
include_dirs = [ ".." ]
sources = [
"NVPTXInstPrinter.cpp",
"NVPTXMCAsmInfo.cpp",
"NVPTXMCTargetDesc.cpp",
"NVPTXTargetStreamer.cpp",
]
}
|