1 import("//llvm/utils/TableGen/tablegen.gni")
3 tablegen("SparcGenAsmWriter") {
4 visibility = [ ":MCTargetDesc" ]
5 args = [ "-gen-asm-writer" ]
6 td_file = "../Sparc.td"
9 tablegen("SparcGenInstrInfo") {
10 visibility = [ ":MCTargetDesc" ]
11 args = [ "-gen-instr-info" ]
12 td_file = "../Sparc.td"
15 tablegen("SparcGenMCCodeEmitter") {
16 visibility = [ ":MCTargetDesc" ]
17 args = [ "-gen-emitter" ]
18 td_file = "../Sparc.td"
21 tablegen("SparcGenRegisterInfo") {
22 visibility = [ ":MCTargetDesc" ]
23 args = [ "-gen-register-info" ]
24 td_file = "../Sparc.td"
27 tablegen("SparcGenSubtargetInfo") {
28 visibility = [ ":MCTargetDesc" ]
29 args = [ "-gen-subtarget" ]
30 td_file = "../Sparc.td"
33 static_library("MCTargetDesc") {
34 output_name = "LLVMSparcDesc"
36 # This should contain tablegen targets generating .inc files included
37 # by other targets. .inc files only used by .cpp files in this directory
38 # should be in deps instead.
41 ":SparcGenRegisterInfo",
42 ":SparcGenSubtargetInfo",
46 ":SparcGenMCCodeEmitter",
50 include_dirs = [ ".." ]
52 "SparcAsmBackend.cpp",
53 "SparcELFObjectWriter.cpp",
54 "SparcInstPrinter.cpp",
56 "SparcMCCodeEmitter.cpp",
58 "SparcMCTargetDesc.cpp",
59 "SparcTargetStreamer.cpp",