1 import("//llvm/utils/TableGen/tablegen.gni")
3 tablegen("LanaiGenAsmWriter") {
4 visibility = [ ":MCTargetDesc" ]
5 args = [ "-gen-asm-writer" ]
6 td_file = "../Lanai.td"
9 tablegen("LanaiGenInstrInfo") {
10 visibility = [ ":MCTargetDesc" ]
11 args = [ "-gen-instr-info" ]
12 td_file = "../Lanai.td"
15 tablegen("LanaiGenMCCodeEmitter") {
16 visibility = [ ":MCTargetDesc" ]
17 args = [ "-gen-emitter" ]
18 td_file = "../Lanai.td"
21 tablegen("LanaiGenRegisterInfo") {
22 visibility = [ ":MCTargetDesc" ]
23 args = [ "-gen-register-info" ]
24 td_file = "../Lanai.td"
27 tablegen("LanaiGenSubtargetInfo") {
28 visibility = [ ":MCTargetDesc" ]
29 args = [ "-gen-subtarget" ]
30 td_file = "../Lanai.td"
33 static_library("MCTargetDesc") {
34 output_name = "LLVMLanaiDesc"
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 ":LanaiGenRegisterInfo",
42 ":LanaiGenSubtargetInfo",
46 ":LanaiGenMCCodeEmitter",
49 "//llvm/lib/Target/Lanai/TargetInfo",
51 include_dirs = [ ".." ]
53 "LanaiAsmBackend.cpp",
54 "LanaiELFObjectWriter.cpp",
55 "LanaiInstPrinter.cpp",
57 "LanaiMCCodeEmitter.cpp",
59 "LanaiMCTargetDesc.cpp",