[lit] Improve lit.Run class
[llvm-complete.git] / utils / gn / secondary / llvm / lib / Target / Lanai / MCTargetDesc / BUILD.gn
blob3c24029ebe288f771e64f072a9acfb4da527e9cc
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.
39   public_deps = [
40     ":LanaiGenInstrInfo",
41     ":LanaiGenRegisterInfo",
42     ":LanaiGenSubtargetInfo",
43   ]
44   deps = [
45     ":LanaiGenAsmWriter",
46     ":LanaiGenMCCodeEmitter",
47     "//llvm/lib/MC",
48     "//llvm/lib/Support",
49     "//llvm/lib/Target/Lanai/TargetInfo",
50   ]
51   include_dirs = [ ".." ]
52   sources = [
53     "LanaiAsmBackend.cpp",
54     "LanaiELFObjectWriter.cpp",
55     "LanaiInstPrinter.cpp",
56     "LanaiMCAsmInfo.cpp",
57     "LanaiMCCodeEmitter.cpp",
58     "LanaiMCExpr.cpp",
59     "LanaiMCTargetDesc.cpp",
60   ]