[lit] Improve lit.Run class
[llvm-complete.git] / utils / gn / secondary / llvm / lib / Target / BPF / MCTargetDesc / BUILD.gn
blob445df9f8e0e923190c9bbba35b4c839e7aaddd54
1 import("//llvm/utils/TableGen/tablegen.gni")
3 tablegen("BPFGenAsmWriter") {
4   visibility = [ ":MCTargetDesc" ]
5   args = [ "-gen-asm-writer" ]
6   td_file = "../BPF.td"
9 tablegen("BPFGenInstrInfo") {
10   visibility = [ ":MCTargetDesc" ]
11   args = [ "-gen-instr-info" ]
12   td_file = "../BPF.td"
15 tablegen("BPFGenMCCodeEmitter") {
16   visibility = [ ":MCTargetDesc" ]
17   args = [ "-gen-emitter" ]
18   td_file = "../BPF.td"
21 tablegen("BPFGenRegisterInfo") {
22   visibility = [ ":MCTargetDesc" ]
23   args = [ "-gen-register-info" ]
24   td_file = "../BPF.td"
27 tablegen("BPFGenSubtargetInfo") {
28   visibility = [ ":MCTargetDesc" ]
29   args = [ "-gen-subtarget" ]
30   td_file = "../BPF.td"
33 static_library("MCTargetDesc") {
34   output_name = "LLVMBPFDesc"
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     ":BPFGenInstrInfo",
41     ":BPFGenRegisterInfo",
42     ":BPFGenSubtargetInfo",
43   ]
44   deps = [
45     ":BPFGenAsmWriter",
46     ":BPFGenMCCodeEmitter",
47     "//llvm/lib/MC",
48     "//llvm/lib/MC/MCDisassembler",
49     "//llvm/lib/Support",
50     "//llvm/lib/Target/BPF/TargetInfo",
51   ]
52   include_dirs = [ ".." ]
53   sources = [
54     "BPFAsmBackend.cpp",
55     "BPFELFObjectWriter.cpp",
56     "BPFInstPrinter.cpp",
57     "BPFMCCodeEmitter.cpp",
58     "BPFMCTargetDesc.cpp",
59   ]