Build system infrastructure for multiple tblgens.
[oota-llvm.git] / lib / Target / PowerPC / CMakeLists.txt
1 set(LLVM_TARGET_DEFINITIONS PPC.td)
2
3 llvm_tablegen(PPCGenAsmWriter.inc -gen-asm-writer)
4 llvm_tablegen(PPCGenCodeEmitter.inc -gen-emitter)
5 llvm_tablegen(PPCGenMCCodeEmitter.inc -gen-emitter -mc-emitter)
6 llvm_tablegen(PPCGenRegisterInfo.inc -gen-register-info)
7 llvm_tablegen(PPCGenInstrInfo.inc -gen-instr-info)
8 llvm_tablegen(PPCGenDAGISel.inc -gen-dag-isel)
9 llvm_tablegen(PPCGenCallingConv.inc -gen-callingconv)
10 llvm_tablegen(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)