• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1set(LLVM_TARGET_DEFINITIONS AMDGPU.td)
2
3tablegen(LLVM AMDGPUGenRegisterInfo.inc -gen-register-info)
4tablegen(LLVM AMDGPUGenInstrInfo.inc -gen-instr-info)
5tablegen(LLVM AMDGPUGenDAGISel.inc -gen-dag-isel)
6tablegen(LLVM AMDGPUGenCallingConv.inc -gen-callingconv)
7tablegen(LLVM AMDGPUGenSubtargetInfo.inc -gen-subtarget)
8tablegen(LLVM AMDGPUGenIntrinsics.inc -gen-tgt-intrinsic)
9tablegen(LLVM AMDGPUGenMCCodeEmitter.inc -gen-emitter)
10tablegen(LLVM AMDGPUGenDFAPacketizer.inc -gen-dfa-packetizer)
11tablegen(LLVM AMDGPUGenAsmWriter.inc -gen-asm-writer)
12tablegen(LLVM AMDGPUGenAsmMatcher.inc -gen-asm-matcher)
13tablegen(LLVM AMDGPUGenDisassemblerTables.inc -gen-disassembler)
14add_public_tablegen_target(AMDGPUCommonTableGen)
15
16# List of all GlobalISel files.
17set(GLOBAL_ISEL_FILES
18  AMDGPUCallLowering.cpp
19  )
20
21# Add GlobalISel files to the dependencies if the user wants to build it.
22if(LLVM_BUILD_GLOBAL_ISEL)
23  set(GLOBAL_ISEL_BUILD_FILES ${GLOBAL_ISEL_FILES})
24else()
25  set(GLOBAL_ISEL_BUILD_FILES"")
26  set(LLVM_OPTIONAL_SOURCES LLVMGlobalISel ${GLOBAL_ISEL_FILES})
27endif()
28
29
30add_llvm_target(AMDGPUCodeGen
31  AMDILCFGStructurizer.cpp
32  AMDGPUAlwaysInlinePass.cpp
33  AMDGPUAnnotateKernelFeatures.cpp
34  AMDGPUAnnotateUniformValues.cpp
35  AMDGPUAsmPrinter.cpp
36  AMDGPUCodeGenPrepare.cpp
37  AMDGPUFrameLowering.cpp
38  AMDGPUTargetObjectFile.cpp
39  AMDGPUIntrinsicInfo.cpp
40  AMDGPUISelDAGToDAG.cpp
41  AMDGPUMCInstLower.cpp
42  AMDGPUMachineFunction.cpp
43  AMDGPUOpenCLImageTypeLoweringPass.cpp
44  AMDGPUSubtarget.cpp
45  AMDGPUTargetMachine.cpp
46  AMDGPUTargetTransformInfo.cpp
47  AMDGPUISelLowering.cpp
48  AMDGPUInstrInfo.cpp
49  AMDGPUPromoteAlloca.cpp
50  AMDGPURegisterInfo.cpp
51  GCNHazardRecognizer.cpp
52  R600ClauseMergePass.cpp
53  R600ControlFlowFinalizer.cpp
54  R600EmitClauseMarkers.cpp
55  R600ExpandSpecialInstrs.cpp
56  R600FrameLowering.cpp
57  R600InstrInfo.cpp
58  R600ISelLowering.cpp
59  R600MachineFunctionInfo.cpp
60  R600MachineScheduler.cpp
61  R600OptimizeVectorRegisters.cpp
62  R600Packetizer.cpp
63  R600RegisterInfo.cpp
64  SIAnnotateControlFlow.cpp
65  SIDebuggerInsertNops.cpp
66  SIFixControlFlowLiveIntervals.cpp
67  SIFixSGPRCopies.cpp
68  SIFoldOperands.cpp
69  SIFrameLowering.cpp
70  SIInsertWaits.cpp
71  SIInstrInfo.cpp
72  SIISelLowering.cpp
73  SILoadStoreOptimizer.cpp
74  SILowerControlFlow.cpp
75  SILowerI1Copies.cpp
76  SIMachineFunctionInfo.cpp
77  SIMachineScheduler.cpp
78  SIRegisterInfo.cpp
79  SIShrinkInstructions.cpp
80  SITypeRewriter.cpp
81  SIWholeQuadMode.cpp
82  ${GLOBAL_ISEL_BUILD_FILES}
83  )
84
85add_subdirectory(AsmParser)
86add_subdirectory(InstPrinter)
87add_subdirectory(Disassembler)
88add_subdirectory(TargetInfo)
89add_subdirectory(MCTargetDesc)
90add_subdirectory(Utils)
91