2012-12-11 22:25:42 +01:00
|
|
|
set(LLVM_TARGET_DEFINITIONS AMDGPU.td)
|
|
|
|
|
|
|
|
tablegen(LLVM AMDGPUGenRegisterInfo.inc -gen-register-info)
|
|
|
|
tablegen(LLVM AMDGPUGenInstrInfo.inc -gen-instr-info)
|
|
|
|
tablegen(LLVM AMDGPUGenDAGISel.inc -gen-dag-isel)
|
|
|
|
tablegen(LLVM AMDGPUGenCallingConv.inc -gen-callingconv)
|
|
|
|
tablegen(LLVM AMDGPUGenSubtargetInfo.inc -gen-subtarget)
|
|
|
|
tablegen(LLVM AMDGPUGenIntrinsics.inc -gen-tgt-intrinsic)
|
2014-09-03 00:28:02 +02:00
|
|
|
tablegen(LLVM AMDGPUGenMCCodeEmitter.inc -gen-emitter)
|
2012-12-11 22:25:42 +01:00
|
|
|
tablegen(LLVM AMDGPUGenDFAPacketizer.inc -gen-dfa-packetizer)
|
|
|
|
tablegen(LLVM AMDGPUGenAsmWriter.inc -gen-asm-writer)
|
2014-11-14 15:08:00 +01:00
|
|
|
tablegen(LLVM AMDGPUGenAsmMatcher.inc -gen-asm-matcher)
|
2016-02-18 04:42:32 +01:00
|
|
|
tablegen(LLVM AMDGPUGenDisassemblerTables.inc -gen-disassembler)
|
2016-10-06 19:19:11 +02:00
|
|
|
tablegen(LLVM AMDGPUGenMCPseudoLowering.inc -gen-pseudo-lowering)
|
Re-commit AMDGPU/GlobalISel: Add support for simple shaders
Fix build when global-isel is disabled and fix a warning.
Summary: We can select constant/global G_LOAD, global G_STORE, and G_GEP.
Reviewers: qcolombet, MatzeB, t.p.northover, ab, arsenm
Subscribers: mehdi_amini, vkalintiris, kzhuravl, wdng, nhaehnle, mgorny, yaxunl, tony-tye, modocache, llvm-commits, dberris
Differential Revision: https://reviews.llvm.org/D26730
llvm-svn: 293551
2017-01-30 22:56:46 +01:00
|
|
|
if(LLVM_BUILD_GLOBAL_ISEL)
|
|
|
|
tablegen(LLVM AMDGPUGenRegisterBank.inc -gen-register-bank)
|
|
|
|
endif()
|
2012-12-11 22:25:42 +01:00
|
|
|
add_public_tablegen_target(AMDGPUCommonTableGen)
|
|
|
|
|
2016-04-14 21:09:28 +02:00
|
|
|
# List of all GlobalISel files.
|
|
|
|
set(GLOBAL_ISEL_FILES
|
|
|
|
AMDGPUCallLowering.cpp
|
Re-commit AMDGPU/GlobalISel: Add support for simple shaders
Fix build when global-isel is disabled and fix a warning.
Summary: We can select constant/global G_LOAD, global G_STORE, and G_GEP.
Reviewers: qcolombet, MatzeB, t.p.northover, ab, arsenm
Subscribers: mehdi_amini, vkalintiris, kzhuravl, wdng, nhaehnle, mgorny, yaxunl, tony-tye, modocache, llvm-commits, dberris
Differential Revision: https://reviews.llvm.org/D26730
llvm-svn: 293551
2017-01-30 22:56:46 +01:00
|
|
|
AMDGPUInstructionSelector.cpp
|
|
|
|
AMDGPULegalizerInfo.cpp
|
|
|
|
AMDGPURegisterBankInfo.cpp
|
2016-04-14 21:09:28 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
# Add GlobalISel files to the dependencies if the user wants to build it.
|
|
|
|
if(LLVM_BUILD_GLOBAL_ISEL)
|
|
|
|
set(GLOBAL_ISEL_BUILD_FILES ${GLOBAL_ISEL_FILES})
|
|
|
|
else()
|
|
|
|
set(GLOBAL_ISEL_BUILD_FILES"")
|
|
|
|
set(LLVM_OPTIONAL_SOURCES LLVMGlobalISel ${GLOBAL_ISEL_FILES})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
2015-06-13 05:28:10 +02:00
|
|
|
add_llvm_target(AMDGPUCodeGen
|
2012-12-11 22:25:42 +01:00
|
|
|
AMDILCFGStructurizer.cpp
|
2014-11-03 20:49:05 +01:00
|
|
|
AMDGPUAlwaysInlinePass.cpp
|
2015-11-06 19:01:57 +01:00
|
|
|
AMDGPUAnnotateKernelFeatures.cpp
|
2015-12-15 21:55:55 +01:00
|
|
|
AMDGPUAnnotateUniformValues.cpp
|
2012-12-11 22:25:42 +01:00
|
|
|
AMDGPUAsmPrinter.cpp
|
2016-06-24 09:07:55 +02:00
|
|
|
AMDGPUCodeGenPrepare.cpp
|
2013-02-06 18:32:29 +01:00
|
|
|
AMDGPUFrameLowering.cpp
|
2015-12-10 03:13:01 +01:00
|
|
|
AMDGPUTargetObjectFile.cpp
|
2014-06-23 20:00:31 +02:00
|
|
|
AMDGPUIntrinsicInfo.cpp
|
2013-07-23 03:48:29 +02:00
|
|
|
AMDGPUISelDAGToDAG.cpp
|
2012-12-11 22:25:42 +01:00
|
|
|
AMDGPUMCInstLower.cpp
|
2013-04-02 00:05:58 +02:00
|
|
|
AMDGPUMachineFunction.cpp
|
2016-12-08 20:46:04 +01:00
|
|
|
AMDGPUUnifyMetadata.cpp
|
2015-08-08 01:19:30 +02:00
|
|
|
AMDGPUOpenCLImageTypeLoweringPass.cpp
|
2012-12-11 22:25:42 +01:00
|
|
|
AMDGPUSubtarget.cpp
|
|
|
|
AMDGPUTargetMachine.cpp
|
2013-07-27 02:01:07 +02:00
|
|
|
AMDGPUTargetTransformInfo.cpp
|
2012-12-11 22:25:42 +01:00
|
|
|
AMDGPUISelLowering.cpp
|
|
|
|
AMDGPUInstrInfo.cpp
|
2014-06-17 18:53:14 +02:00
|
|
|
AMDGPUPromoteAlloca.cpp
|
2012-12-11 22:25:42 +01:00
|
|
|
AMDGPURegisterInfo.cpp
|
2016-04-30 02:23:06 +02:00
|
|
|
GCNHazardRecognizer.cpp
|
2016-08-29 21:42:52 +02:00
|
|
|
GCNSchedStrategy.cpp
|
2013-10-01 21:32:58 +02:00
|
|
|
R600ClauseMergePass.cpp
|
2013-04-02 00:05:58 +02:00
|
|
|
R600ControlFlowFinalizer.cpp
|
|
|
|
R600EmitClauseMarkers.cpp
|
2012-12-11 22:25:42 +01:00
|
|
|
R600ExpandSpecialInstrs.cpp
|
2016-06-24 08:30:11 +02:00
|
|
|
R600FrameLowering.cpp
|
2012-12-11 22:25:42 +01:00
|
|
|
R600InstrInfo.cpp
|
|
|
|
R600ISelLowering.cpp
|
|
|
|
R600MachineFunctionInfo.cpp
|
2013-03-05 19:54:05 +01:00
|
|
|
R600MachineScheduler.cpp
|
2013-06-05 23:38:04 +02:00
|
|
|
R600OptimizeVectorRegisters.cpp
|
2013-04-30 02:14:27 +02:00
|
|
|
R600Packetizer.cpp
|
2012-12-11 22:25:42 +01:00
|
|
|
R600RegisterInfo.cpp
|
2012-12-19 23:10:31 +01:00
|
|
|
SIAnnotateControlFlow.cpp
|
2016-05-10 20:33:41 +02:00
|
|
|
SIDebuggerInsertNops.cpp
|
2015-05-12 19:13:02 +02:00
|
|
|
SIFixControlFlowLiveIntervals.cpp
|
2013-08-07 01:12:34 +02:00
|
|
|
SIFixSGPRCopies.cpp
|
2017-01-24 18:46:17 +01:00
|
|
|
SIFixVGPRCopies.cpp
|
2014-11-21 23:06:37 +01:00
|
|
|
SIFoldOperands.cpp
|
2015-11-06 19:17:45 +01:00
|
|
|
SIFrameLowering.cpp
|
2016-08-22 21:33:16 +02:00
|
|
|
SIInsertSkips.cpp
|
2013-01-18 22:15:53 +01:00
|
|
|
SIInsertWaits.cpp
|
2012-12-11 22:25:42 +01:00
|
|
|
SIInstrInfo.cpp
|
|
|
|
SIISelLowering.cpp
|
2014-10-11 00:01:59 +02:00
|
|
|
SILoadStoreOptimizer.cpp
|
2012-12-11 22:25:42 +01:00
|
|
|
SILowerControlFlow.cpp
|
2014-04-30 17:31:33 +02:00
|
|
|
SILowerI1Copies.cpp
|
2012-12-11 22:25:42 +01:00
|
|
|
SIMachineFunctionInfo.cpp
|
2016-01-13 17:10:10 +01:00
|
|
|
SIMachineScheduler.cpp
|
2016-09-29 03:44:16 +02:00
|
|
|
SIOptimizeExecMasking.cpp
|
2012-12-11 22:25:42 +01:00
|
|
|
SIRegisterInfo.cpp
|
2014-07-21 18:55:33 +02:00
|
|
|
SIShrinkInstructions.cpp
|
2013-08-15 01:24:45 +02:00
|
|
|
SITypeRewriter.cpp
|
2016-03-21 21:28:33 +01:00
|
|
|
SIWholeQuadMode.cpp
|
2016-04-14 21:09:28 +02:00
|
|
|
${GLOBAL_ISEL_BUILD_FILES}
|
2012-12-11 22:25:42 +01:00
|
|
|
)
|
|
|
|
|
2014-11-14 15:08:00 +01:00
|
|
|
add_subdirectory(AsmParser)
|
2012-12-11 22:25:42 +01:00
|
|
|
add_subdirectory(InstPrinter)
|
2016-02-18 04:42:32 +01:00
|
|
|
add_subdirectory(Disassembler)
|
2012-12-11 22:25:42 +01:00
|
|
|
add_subdirectory(TargetInfo)
|
|
|
|
add_subdirectory(MCTargetDesc)
|
2015-06-26 23:15:07 +02:00
|
|
|
add_subdirectory(Utils)
|