1 import("//llvm/utils/TableGen/tablegen.gni")
3 tablegen("AMDGPUGenSearchableTables") {
4 visibility = [ ":Utils" ]
5 args = [ "-gen-searchable-tables" ]
6 td_file = "../AMDGPU.td"
9 static_library("Utils") {
10 output_name = "LLVMAMDGPUUtils"
12 ":AMDGPUGenSearchableTables",
15 "//llvm/lib/BinaryFormat",
20 # MCTargetDesc depends on Utils, so we can't depend on the full
21 # MCTargetDesc target here: it would form a cycle.
22 "//llvm/lib/Target/AMDGPU/MCTargetDesc:tablegen",
25 # AMDGPUBaseInfo.h includes a header from MCTargetDesc :-/
26 include_dirs = [ ".." ]
30 "AMDGPUPALMetadata.cpp",
31 "AMDKernelCodeTUtils.cpp",