1 import("//llvm/utils/TableGen/tablegen.gni")
3 tablegen("BPFGenAsmWriter") {
4 visibility = [ ":MCTargetDesc" ]
5 args = [ "-gen-asm-writer" ]
9 tablegen("BPFGenInstrInfo") {
10 visibility = [ ":MCTargetDesc" ]
11 args = [ "-gen-instr-info" ]
15 tablegen("BPFGenMCCodeEmitter") {
16 visibility = [ ":MCTargetDesc" ]
17 args = [ "-gen-emitter" ]
21 tablegen("BPFGenRegisterInfo") {
22 visibility = [ ":MCTargetDesc" ]
23 args = [ "-gen-register-info" ]
27 tablegen("BPFGenSubtargetInfo") {
28 visibility = [ ":MCTargetDesc" ]
29 args = [ "-gen-subtarget" ]
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.
41 ":BPFGenRegisterInfo",
42 ":BPFGenSubtargetInfo",
46 ":BPFGenMCCodeEmitter",
48 "//llvm/lib/MC/MCDisassembler",
50 "//llvm/lib/Target/BPF/TargetInfo",
52 include_dirs = [ ".." ]
55 "BPFELFObjectWriter.cpp",
57 "BPFMCCodeEmitter.cpp",
58 "BPFMCTargetDesc.cpp",