2012-05-05 04:18:50 +08:00
|
|
|
set(LLVM_TARGET_DEFINITIONS NVPTX.td)
|
|
|
|
|
|
|
|
|
|
|
|
tablegen(LLVM NVPTXGenRegisterInfo.inc -gen-register-info)
|
|
|
|
tablegen(LLVM NVPTXGenInstrInfo.inc -gen-instr-info)
|
|
|
|
tablegen(LLVM NVPTXGenAsmWriter.inc -gen-asm-writer)
|
|
|
|
tablegen(LLVM NVPTXGenDAGISel.inc -gen-dag-isel)
|
|
|
|
tablegen(LLVM NVPTXGenSubtargetInfo.inc -gen-subtarget)
|
|
|
|
add_public_tablegen_target(NVPTXCommonTableGen)
|
|
|
|
|
|
|
|
set(NVPTXCodeGen_sources
|
2014-11-11 02:38:25 +08:00
|
|
|
NVPTXAllocaHoisting.cpp
|
|
|
|
NVPTXAsmPrinter.cpp
|
|
|
|
NVPTXAssignValidGlobalNames.cpp
|
2012-05-05 04:18:50 +08:00
|
|
|
NVPTXFrameLowering.cpp
|
2014-11-11 02:38:25 +08:00
|
|
|
NVPTXGenericToNVVM.cpp
|
2012-05-05 04:18:50 +08:00
|
|
|
NVPTXISelDAGToDAG.cpp
|
|
|
|
NVPTXISelLowering.cpp
|
2014-11-11 02:38:25 +08:00
|
|
|
NVPTXImageOptimizer.cpp
|
|
|
|
NVPTXInstrInfo.cpp
|
|
|
|
NVPTXLowerAggrCopies.cpp
|
2016-07-21 05:44:07 +08:00
|
|
|
NVPTXLowerArgs.cpp
|
2015-06-18 06:31:02 +08:00
|
|
|
NVPTXLowerAlloca.cpp
|
2015-06-25 04:20:16 +08:00
|
|
|
NVPTXPeephole.cpp
|
2014-11-11 02:38:25 +08:00
|
|
|
NVPTXMCExpr.cpp
|
|
|
|
NVPTXPrologEpilogPass.cpp
|
2012-05-05 04:18:50 +08:00
|
|
|
NVPTXRegisterInfo.cpp
|
2014-11-11 02:38:25 +08:00
|
|
|
NVPTXReplaceImageHandles.cpp
|
2012-05-05 04:18:50 +08:00
|
|
|
NVPTXSubtarget.cpp
|
|
|
|
NVPTXTargetMachine.cpp
|
2014-11-11 02:38:25 +08:00
|
|
|
NVPTXTargetTransformInfo.cpp
|
2012-05-05 04:18:50 +08:00
|
|
|
NVPTXUtilities.cpp
|
2016-05-27 01:02:56 +08:00
|
|
|
NVVMIntrRange.cpp
|
2013-03-30 22:29:25 +08:00
|
|
|
NVVMReflect.cpp
|
2012-05-05 04:18:50 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
add_llvm_target(NVPTXCodeGen ${NVPTXCodeGen_sources})
|
|
|
|
|
|
|
|
add_subdirectory(TargetInfo)
|
|
|
|
add_subdirectory(InstPrinter)
|
|
|
|
add_subdirectory(MCTargetDesc)
|