[lit] Improve lit.Run class
[llvm-complete.git] / utils / gn / secondary / llvm / lib / Target / AMDGPU / MCTargetDesc / BUILD.gn
blob0b17e169d656728d978ccfa354763ab9d2690168
1 import("//llvm/utils/TableGen/tablegen.gni")
3 tablegen("AMDGPUGenAsmWriter") {
4   visibility = [ ":MCTargetDesc" ]
5   args = [ "-gen-asm-writer" ]
6   td_file = "../AMDGPU.td"
9 tablegen("AMDGPUGenInstrInfo") {
10   visibility = [ ":tablegen" ]
11   args = [ "-gen-instr-info" ]
12   td_file = "../AMDGPU.td"
15 tablegen("AMDGPUGenMCCodeEmitter") {
16   visibility = [ ":MCTargetDesc" ]
17   args = [ "-gen-emitter" ]
18   td_file = "../AMDGPU.td"
21 tablegen("AMDGPUGenRegisterInfo") {
22   visibility = [ ":tablegen" ]
23   args = [ "-gen-register-info" ]
24   td_file = "../AMDGPU.td"
27 tablegen("AMDGPUGenSubtargetInfo") {
28   visibility = [ ":tablegen" ]
29   args = [ "-gen-subtarget" ]
30   td_file = "../AMDGPU.td"
33 tablegen("R600GenAsmWriter") {
34   visibility = [ ":MCTargetDesc" ]
35   args = [ "-gen-asm-writer" ]
36   td_file = "../R600.td"
39 tablegen("R600GenInstrInfo") {
40   visibility = [ ":tablegen" ]
41   args = [ "-gen-instr-info" ]
42   td_file = "../R600.td"
45 tablegen("R600GenMCCodeEmitter") {
46   visibility = [ ":MCTargetDesc" ]
47   args = [ "-gen-emitter" ]
48   td_file = "../R600.td"
51 tablegen("R600GenRegisterInfo") {
52   visibility = [ ":tablegen" ]
53   args = [ "-gen-register-info" ]
54   td_file = "../R600.td"
57 tablegen("R600GenSubtargetInfo") {
58   visibility = [ ":tablegen" ]
59   args = [ "-gen-subtarget" ]
60   td_file = "../R600.td"
63 # This should contain tablegen targets generating .inc files included
64 # by other targets. .inc files only used by .cpp files in this directory
65 # should be in deps on the static_library instead.
66 group("tablegen") {
67   visibility = [
68     ":MCTargetDesc",
69     "../Utils",
70   ]
71   public_deps = [
72     ":AMDGPUGenInstrInfo",
73     ":AMDGPUGenRegisterInfo",
74     ":AMDGPUGenSubtargetInfo",
75     ":R600GenInstrInfo",
76     ":R600GenRegisterInfo",
77     ":R600GenSubtargetInfo",
78   ]
81 static_library("MCTargetDesc") {
82   output_name = "LLVMAMDGPUDesc"
83   public_deps = [
84     ":tablegen",
85   ]
86   deps = [
87     ":AMDGPUGenAsmWriter",
88     ":AMDGPUGenMCCodeEmitter",
89     ":R600GenAsmWriter",
90     ":R600GenMCCodeEmitter",
91     "//llvm/lib/BinaryFormat",
92     "//llvm/lib/IR",
93     "//llvm/lib/MC",
94     "//llvm/lib/Support",
95     "//llvm/lib/Target/AMDGPU/TargetInfo",
96     "//llvm/lib/Target/AMDGPU/Utils",
97   ]
98   include_dirs = [ ".." ]
99   sources = [
100     "AMDGPUAsmBackend.cpp",
101     "AMDGPUELFObjectWriter.cpp",
102     "AMDGPUELFStreamer.cpp",
103     "AMDGPUInstPrinter.cpp",
104     "AMDGPUMCAsmInfo.cpp",
105     "AMDGPUMCCodeEmitter.cpp",
106     "AMDGPUMCTargetDesc.cpp",
107     "AMDGPUTargetStreamer.cpp",
108     "R600MCCodeEmitter.cpp",
109     "R600MCTargetDesc.cpp",
110     "SIMCCodeEmitter.cpp",
111   ]