1set(LLVM_TARGET_DEFINITIONS NVPTX.td)
2
3
4tablegen(LLVM NVPTXGenRegisterInfo.inc -gen-register-info)
5tablegen(LLVM NVPTXGenInstrInfo.inc -gen-instr-info)
6tablegen(LLVM NVPTXGenAsmWriter.inc -gen-asm-writer)
7tablegen(LLVM NVPTXGenDAGISel.inc -gen-dag-isel)
8tablegen(LLVM NVPTXGenSubtargetInfo.inc -gen-subtarget)
9add_public_tablegen_target(NVPTXCommonTableGen)
10
11set(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
37add_llvm_target(NVPTXCodeGen ${NVPTXCodeGen_sources})
38
39add_subdirectory(TargetInfo)
40add_subdirectory(InstPrinter)
41add_subdirectory(MCTargetDesc)
42