PTX: MC-ize the PTX back-end (patch 1 of N)
[oota-llvm.git] / lib / Target / PTX / CMakeLists.txt
1 set(LLVM_TARGET_DEFINITIONS PTX.td)
2
3 tablegen(PTXGenAsmWriter.inc -gen-asm-writer)
4 tablegen(PTXGenDAGISel.inc -gen-dag-isel)
5 tablegen(PTXGenInstrInfo.inc -gen-instr-info)
6 tablegen(PTXGenRegisterInfo.inc -gen-register-info)
7 tablegen(PTXGenSubtargetInfo.inc -gen-subtarget)
8 add_public_tablegen_target(PTXCommonTableGen)
9
10 add_llvm_target(PTXCodeGen
11   PTXAsmPrinter.cpp
12   PTXISelDAGToDAG.cpp
13   PTXISelLowering.cpp
14   PTXInstrInfo.cpp
15   PTXFrameLowering.cpp
16   PTXMCAsmStreamer.cpp
17   PTXMCInstLower.cpp
18   PTXMFInfoExtract.cpp
19   PTXParamManager.cpp
20   PTXRegAlloc.cpp
21   PTXRegisterInfo.cpp
22   PTXSelectionDAGInfo.cpp
23   PTXSubtarget.cpp
24   PTXTargetMachine.cpp
25   )
26
27 add_llvm_library_dependencies(LLVMPTXCodeGen
28   LLVMAnalysis
29   LLVMAsmPrinter
30   LLVMCodeGen
31   LLVMCore
32   LLVMMC
33   LLVMPTXDesc
34   LLVMPTXInfo
35   LLVMSelectionDAG
36   LLVMSupport
37   LLVMTarget
38   )
39
40 add_subdirectory(TargetInfo)
41 add_subdirectory(InstPrinter)
42 add_subdirectory(MCTargetDesc)
43