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.
72 ":AMDGPUGenInstrInfo",
73 ":AMDGPUGenRegisterInfo",
74 ":AMDGPUGenSubtargetInfo",
76 ":R600GenRegisterInfo",
77 ":R600GenSubtargetInfo",
81 static_library("MCTargetDesc") {
82 output_name = "LLVMAMDGPUDesc"
87 ":AMDGPUGenAsmWriter",
88 ":AMDGPUGenMCCodeEmitter",
90 ":R600GenMCCodeEmitter",
91 "//llvm/lib/BinaryFormat",
95 "//llvm/lib/Target/AMDGPU/TargetInfo",
96 "//llvm/lib/Target/AMDGPU/Utils",
98 include_dirs = [ ".." ]
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",