Merging r258471:
[oota-llvm.git] / lib / Target / NVPTX / CMakeLists.txt
1 set(LLVM_TARGET_DEFINITIONS NVPTX.td)
2
3
4 tablegen(LLVM NVPTXGenRegisterInfo.inc -gen-register-info)
5 tablegen(LLVM NVPTXGenInstrInfo.inc -gen-instr-info)
6 tablegen(LLVM NVPTXGenAsmWriter.inc -gen-asm-writer)
7 tablegen(LLVM NVPTXGenDAGISel.inc -gen-dag-isel)
8 tablegen(LLVM NVPTXGenSubtargetInfo.inc -gen-subtarget)
9 add_public_tablegen_target(NVPTXCommonTableGen)
10
11 set(NVPTXCodeGen_sources
12   NVPTXAllocaHoisting.cpp
13   NVPTXAsmPrinter.cpp
14   NVPTXAssignValidGlobalNames.cpp
15   NVPTXFavorNonGenericAddrSpaces.cpp
16   NVPTXFrameLowering.cpp
17   NVPTXGenericToNVVM.cpp
18   NVPTXISelDAGToDAG.cpp
19   NVPTXISelLowering.cpp
20   NVPTXImageOptimizer.cpp
21   NVPTXInstrInfo.cpp
22   NVPTXLowerAggrCopies.cpp
23   NVPTXLowerKernelArgs.cpp
24   NVPTXLowerAlloca.cpp
25   NVPTXPeephole.cpp
26   NVPTXMCExpr.cpp
27   NVPTXPrologEpilogPass.cpp
28   NVPTXRegisterInfo.cpp
29   NVPTXReplaceImageHandles.cpp
30   NVPTXSubtarget.cpp
31   NVPTXTargetMachine.cpp
32   NVPTXTargetTransformInfo.cpp
33   NVPTXUtilities.cpp
34   NVVMReflect.cpp
35   )
36
37 add_llvm_target(NVPTXCodeGen ${NVPTXCodeGen_sources})
38
39 add_subdirectory(TargetInfo)
40 add_subdirectory(InstPrinter)
41 add_subdirectory(MCTargetDesc)