f711af93a468b8b87b37af98eceb77b1aac6969b
[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   PTXMFInfoExtract.cpp
18   PTXParamManager.cpp
19   PTXRegAlloc.cpp
20   PTXRegisterInfo.cpp
21   PTXSelectionDAGInfo.cpp
22   PTXSubtarget.cpp
23   PTXTargetMachine.cpp
24   )
25
26 add_llvm_library_dependencies(LLVMPTXCodeGen
27   LLVMAnalysis
28   LLVMAsmPrinter
29   LLVMCodeGen
30   LLVMCore
31   LLVMMC
32   LLVMPTXDesc
33   LLVMPTXInfo
34   LLVMSelectionDAG
35   LLVMSupport
36   LLVMTarget
37   )
38
39 add_subdirectory(TargetInfo)
40 add_subdirectory(MCTargetDesc)