1 import("//llvm/utils/TableGen/tablegen.gni")
3 tablegen("WebAssemblyGenAsmWriter") {
4 visibility = [ ":MCTargetDesc" ]
5 args = [ "-gen-asm-writer" ]
6 td_file = "../WebAssembly.td"
9 tablegen("WebAssemblyGenInstrInfo") {
10 visibility = [ ":MCTargetDesc" ]
11 args = [ "-gen-instr-info" ]
12 td_file = "../WebAssembly.td"
15 tablegen("WebAssemblyGenMCCodeEmitter") {
16 visibility = [ ":MCTargetDesc" ]
17 args = [ "-gen-emitter" ]
18 td_file = "../WebAssembly.td"
21 tablegen("WebAssemblyGenRegisterInfo") {
22 visibility = [ ":MCTargetDesc" ]
23 args = [ "-gen-register-info" ]
24 td_file = "../WebAssembly.td"
27 tablegen("WebAssemblyGenSubtargetInfo") {
28 visibility = [ ":MCTargetDesc" ]
29 args = [ "-gen-subtarget" ]
30 td_file = "../WebAssembly.td"
33 static_library("MCTargetDesc") {
34 output_name = "LLVMWebAssemblyDesc"
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.
40 ":WebAssemblyGenInstrInfo",
41 ":WebAssemblyGenRegisterInfo",
42 ":WebAssemblyGenSubtargetInfo",
45 ":WebAssemblyGenAsmWriter",
46 ":WebAssemblyGenMCCodeEmitter",
49 "//llvm/lib/Target/WebAssembly/TargetInfo",
51 include_dirs = [ ".." ]
53 "WebAssemblyAsmBackend.cpp",
54 "WebAssemblyInstPrinter.cpp",
55 "WebAssemblyMCAsmInfo.cpp",
56 "WebAssemblyMCCodeEmitter.cpp",
57 "WebAssemblyMCTargetDesc.cpp",
58 "WebAssemblyTargetStreamer.cpp",
59 "WebAssemblyWasmObjectWriter.cpp",