[WebAssembly] Initial WebAssembly backend
[oota-llvm.git] / lib / Target / WebAssembly / CMakeLists.txt
1 set(LLVM_TARGET_DEFINITIONS WebAssembly.td)
2
3 tablegen(LLVM WebAssemblyGenMCCodeEmitter.inc -gen-emitter)
4 tablegen(LLVM WebAssemblyGenSubtargetInfo.inc -gen-subtarget)
5 add_public_tablegen_target(WebAssemblyCommonTableGen)
6
7 add_llvm_target(WebAssemblyCodeGen
8   WebAssemblyFrameLowering.cpp
9   WebAssemblyInstrInfo.cpp
10   WebAssemblyISelDAGToDAG.cpp
11   WebAssemblyISelLowering.cpp
12   WebAssemblyMachineFunctionInfo.cpp
13   WebAssemblyRegisterInfo.cpp
14   WebAssemblySelectionDAGInfo.cpp
15   WebAssemblySubtarget.cpp
16   WebAssemblyTargetMachine.cpp
17   WebAssemblyTargetTransformInfo.cpp
18 )
19
20 add_dependencies(LLVMWebAssemblyCodeGen intrinsics_gen)
21
22 add_subdirectory(InstPrinter)
23 add_subdirectory(TargetInfo)
24 add_subdirectory(MCTargetDesc)