1 import("//llvm/utils/TableGen/tablegen.gni")
3 tablegen("NVPTXGenAsmWriter") {
4 visibility = [ ":MCTargetDesc" ]
5 args = [ "-gen-asm-writer" ]
6 td_file = "../NVPTX.td"
9 tablegen("NVPTXGenInstrInfo") {
10 visibility = [ ":MCTargetDesc" ]
11 args = [ "-gen-instr-info" ]
12 td_file = "../NVPTX.td"
15 tablegen("NVPTXGenRegisterInfo") {
16 visibility = [ ":MCTargetDesc" ]
17 args = [ "-gen-register-info" ]
18 td_file = "../NVPTX.td"
21 tablegen("NVPTXGenSubtargetInfo") {
22 visibility = [ ":MCTargetDesc" ]
23 args = [ "-gen-subtarget" ]
24 td_file = "../NVPTX.td"
27 static_library("MCTargetDesc") {
28 output_name = "LLVMNVPTXDesc"
30 # This should contain tablegen targets generating .inc files included
31 # by other targets. .inc files only used by .cpp files in this directory
32 # should be in deps on the static_library instead.
35 ":NVPTXGenRegisterInfo",
36 ":NVPTXGenSubtargetInfo",
42 "//llvm/lib/Target/NVPTX/TargetInfo",
44 include_dirs = [ ".." ]
46 "NVPTXInstPrinter.cpp",
48 "NVPTXMCTargetDesc.cpp",
49 "NVPTXTargetStreamer.cpp",