build/cmake: Use tblgen macro directly instead of llvm_tablegen, which just
[oota-llvm.git] / lib / Target / PowerPC / CMakeLists.txt
1 set(LLVM_TARGET_DEFINITIONS PPC.td)
2
3 tablegen(LLVM PPCGenAsmWriter.inc -gen-asm-writer)
4 tablegen(LLVM PPCGenCodeEmitter.inc -gen-emitter)
5 tablegen(LLVM PPCGenMCCodeEmitter.inc -gen-emitter -mc-emitter)
6 tablegen(LLVM PPCGenRegisterInfo.inc -gen-register-info)
7 tablegen(LLVM PPCGenInstrInfo.inc -gen-instr-info)
8 tablegen(LLVM PPCGenDAGISel.inc -gen-dag-isel)
9 tablegen(LLVM PPCGenCallingConv.inc -gen-callingconv)
10 tablegen(LLVM PPCGenSubtargetInfo.inc -gen-subtarget)
11 add_public_tablegen_target(PowerPCCommonTableGen)
12
13 add_llvm_target(PowerPCCodeGen
14   PPCAsmPrinter.cpp
15   PPCBranchSelector.cpp
16   PPCCodeEmitter.cpp
17   PPCHazardRecognizers.cpp
18   PPCInstrInfo.cpp
19   PPCISelDAGToDAG.cpp
20   PPCISelLowering.cpp
21   PPCFrameLowering.cpp
22   PPCJITInfo.cpp
23   PPCMCInstLower.cpp
24   PPCRegisterInfo.cpp
25   PPCSubtarget.cpp
26   PPCTargetMachine.cpp
27   PPCSelectionDAGInfo.cpp
28   )
29
30 add_llvm_library_dependencies(LLVMPowerPCCodeGen
31   LLVMAnalysis
32   LLVMAsmPrinter
33   LLVMCodeGen
34   LLVMCore
35   LLVMMC
36   LLVMPowerPCAsmPrinter
37   LLVMPowerPCDesc
38   LLVMPowerPCInfo
39   LLVMSelectionDAG
40   LLVMSupport
41   LLVMTarget
42   )
43
44 add_subdirectory(InstPrinter)
45 add_subdirectory(TargetInfo)
46 add_subdirectory(MCTargetDesc)