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  NVPTXFrameLowering.cpp
13  NVPTXInstrInfo.cpp
14  NVPTXISelDAGToDAG.cpp
15  NVPTXISelLowering.cpp
16  NVPTXRegisterInfo.cpp
17  NVPTXSubtarget.cpp
18  NVPTXTargetMachine.cpp
19  NVPTXSplitBBatBar.cpp
20  NVPTXLowerAggrCopies.cpp
21  NVPTXutil.cpp
22  NVPTXAllocaHoisting.cpp
23  NVPTXAsmPrinter.cpp
24  NVPTXUtilities.cpp
25  NVVMReflect.cpp
26  NVPTXGenericToNVVM.cpp
27  NVPTXPrologEpilogPass.cpp
28  NVPTXMCExpr.cpp
29  )
30
31add_llvm_target(NVPTXCodeGen ${NVPTXCodeGen_sources})
32
33add_dependencies(LLVMNVPTXCodeGen NVPTXCommonTableGen intrinsics_gen)
34
35add_subdirectory(TargetInfo)
36add_subdirectory(InstPrinter)
37add_subdirectory(MCTargetDesc)
38