Starting to refactor Target to separate out code that's needed to fully describe
[oota-llvm.git] / lib / Target / MSP430 / CMakeLists.txt
1 set(LLVM_TARGET_DEFINITIONS MSP430.td)
2
3 tablegen(MSP430GenRegisterNames.inc -gen-register-enums)
4 tablegen(MSP430GenRegisterDesc.inc -gen-register-desc)
5 tablegen(MSP430GenRegisterInfo.h.inc -gen-register-info-header)
6 tablegen(MSP430GenRegisterInfo.inc -gen-register-info)
7 tablegen(MSP430GenInstrNames.inc -gen-instr-enums)
8 tablegen(MSP430GenInstrInfo.inc -gen-instr-desc)
9 tablegen(MSP430GenAsmWriter.inc -gen-asm-writer)
10 tablegen(MSP430GenDAGISel.inc -gen-dag-isel)
11 tablegen(MSP430GenCallingConv.inc -gen-callingconv)
12 tablegen(MSP430GenSubtarget.inc -gen-subtarget)
13
14 add_llvm_target(MSP430CodeGen
15   MSP430BranchSelector.cpp
16   MSP430ISelDAGToDAG.cpp
17   MSP430ISelLowering.cpp
18   MSP430InstrInfo.cpp
19   MSP430FrameLowering.cpp
20   MSP430MCAsmInfo.cpp
21   MSP430RegisterInfo.cpp
22   MSP430Subtarget.cpp
23   MSP430TargetMachine.cpp
24   MSP430SelectionDAGInfo.cpp
25   MSP430AsmPrinter.cpp
26   MSP430MCInstLower.cpp
27   )
28
29 add_subdirectory(InstPrinter)
30 add_subdirectory(TargetInfo)