1set(LLVM_TARGET_DEFINITIONS WebAssembly.td)
2
3tablegen(LLVM WebAssemblyGenAsmWriter.inc -gen-asm-writer)
4tablegen(LLVM WebAssemblyGenDAGISel.inc -gen-dag-isel)
5tablegen(LLVM WebAssemblyGenFastISel.inc -gen-fast-isel)
6tablegen(LLVM WebAssemblyGenInstrInfo.inc -gen-instr-info)
7tablegen(LLVM WebAssemblyGenMCCodeEmitter.inc -gen-emitter)
8tablegen(LLVM WebAssemblyGenRegisterInfo.inc -gen-register-info)
9tablegen(LLVM WebAssemblyGenSubtargetInfo.inc -gen-subtarget)
10add_public_tablegen_target(WebAssemblyCommonTableGen)
11
12add_llvm_target(WebAssemblyCodeGen
13  WebAssemblyArgumentMove.cpp
14  WebAssemblyAsmPrinter.cpp
15  WebAssemblyCFGStackify.cpp
16  WebAssemblyFastISel.cpp
17  WebAssemblyFixIrreducibleControlFlow.cpp
18  WebAssemblyFrameLowering.cpp
19  WebAssemblyISelDAGToDAG.cpp
20  WebAssemblyISelLowering.cpp
21  WebAssemblyInstrInfo.cpp
22  WebAssemblyLowerBrUnless.cpp
23  WebAssemblyMachineFunctionInfo.cpp
24  WebAssemblyMCInstLower.cpp
25  WebAssemblyOptimizeLiveIntervals.cpp
26  WebAssemblyOptimizeReturned.cpp
27  WebAssemblyPeephole.cpp
28  WebAssemblyPrepareForLiveIntervals.cpp
29  WebAssemblyRegisterInfo.cpp
30  WebAssemblyRegColoring.cpp
31  WebAssemblyRegNumbering.cpp
32  WebAssemblyRegStackify.cpp
33  WebAssemblyReplacePhysRegs.cpp
34  WebAssemblySelectionDAGInfo.cpp
35  WebAssemblySetP2AlignOperands.cpp
36  WebAssemblyStoreResults.cpp
37  WebAssemblySubtarget.cpp
38  WebAssemblyTargetMachine.cpp
39  WebAssemblyTargetObjectFile.cpp
40  WebAssemblyTargetTransformInfo.cpp
41)
42
43add_dependencies(LLVMWebAssemblyCodeGen intrinsics_gen)
44
45add_subdirectory(Disassembler)
46add_subdirectory(InstPrinter)
47add_subdirectory(MCTargetDesc)
48add_subdirectory(TargetInfo)
49