[WebAssembly] Factor out a TypeToString function, since we need it in multiple places.
[oota-llvm.git] / lib / Target / WebAssembly / CMakeLists.txt
1 set(LLVM_TARGET_DEFINITIONS WebAssembly.td)
2
3 tablegen(LLVM WebAssemblyGenAsmWriter.inc -gen-asm-writer)
4 tablegen(LLVM WebAssemblyGenDAGISel.inc -gen-dag-isel)
5 tablegen(LLVM WebAssemblyGenFastISel.inc -gen-fast-isel)
6 tablegen(LLVM WebAssemblyGenInstrInfo.inc -gen-instr-info)
7 tablegen(LLVM WebAssemblyGenMCCodeEmitter.inc -gen-emitter)
8 tablegen(LLVM WebAssemblyGenRegisterInfo.inc -gen-register-info)
9 tablegen(LLVM WebAssemblyGenSubtargetInfo.inc -gen-subtarget)
10 add_public_tablegen_target(WebAssemblyCommonTableGen)
11
12 add_llvm_target(WebAssemblyCodeGen
13   Relooper.cpp
14   WebAssemblyAsmPrinter.cpp
15   WebAssemblyCFGStackify.cpp
16   WebAssemblyFastISel.cpp
17   WebAssemblyFrameLowering.cpp
18   WebAssemblyISelDAGToDAG.cpp
19   WebAssemblyISelLowering.cpp
20   WebAssemblyInstrInfo.cpp
21   WebAssemblyLowerBrUnless.cpp
22   WebAssemblyMachineFunctionInfo.cpp
23   WebAssemblyMCInstLower.cpp
24   WebAssemblyOptimizeReturned.cpp
25   WebAssemblyPeephole.cpp
26   WebAssemblyRegisterInfo.cpp
27   WebAssemblyRegColoring.cpp
28   WebAssemblyRegNumbering.cpp
29   WebAssemblyRegStackify.cpp
30   WebAssemblySelectionDAGInfo.cpp
31   WebAssemblyStoreResults.cpp
32   WebAssemblySubtarget.cpp
33   WebAssemblyTargetMachine.cpp
34   WebAssemblyTargetTransformInfo.cpp
35 )
36
37 add_dependencies(LLVMWebAssemblyCodeGen intrinsics_gen)
38
39 add_subdirectory(InstPrinter)
40 add_subdirectory(TargetInfo)
41 add_subdirectory(MCTargetDesc)