summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/CMakeLists.txt
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2017-01-30 21:56:46 +0000
committerTom Stellard <thomas.stellard@amd.com>2017-01-30 21:56:46 +0000
commitca16621b2a0e105fa34081f704ed3bf4ef79c279 (patch)
tree01ec01f3e27e97357f03b24e7ddb23d85d66b088 /llvm/lib/Target/AMDGPU/CMakeLists.txt
parent2bf8c9d381d479a0164a1991b607547bcd4d2458 (diff)
downloadbcm5719-llvm-ca16621b2a0e105fa34081f704ed3bf4ef79c279.tar.gz
bcm5719-llvm-ca16621b2a0e105fa34081f704ed3bf4ef79c279.zip
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
Diffstat (limited to 'llvm/lib/Target/AMDGPU/CMakeLists.txt')
-rw-r--r--llvm/lib/Target/AMDGPU/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/CMakeLists.txt b/llvm/lib/Target/AMDGPU/CMakeLists.txt
index bbd06b19d63..65853bb6a51 100644
--- a/llvm/lib/Target/AMDGPU/CMakeLists.txt
+++ b/llvm/lib/Target/AMDGPU/CMakeLists.txt
@@ -12,11 +12,17 @@ tablegen(LLVM AMDGPUGenAsmWriter.inc -gen-asm-writer)
tablegen(LLVM AMDGPUGenAsmMatcher.inc -gen-asm-matcher)
tablegen(LLVM AMDGPUGenDisassemblerTables.inc -gen-disassembler)
tablegen(LLVM AMDGPUGenMCPseudoLowering.inc -gen-pseudo-lowering)
+if(LLVM_BUILD_GLOBAL_ISEL)
+ tablegen(LLVM AMDGPUGenRegisterBank.inc -gen-register-bank)
+endif()
add_public_tablegen_target(AMDGPUCommonTableGen)
# List of all GlobalISel files.
set(GLOBAL_ISEL_FILES
AMDGPUCallLowering.cpp
+ AMDGPUInstructionSelector.cpp
+ AMDGPULegalizerInfo.cpp
+ AMDGPURegisterBankInfo.cpp
)
# Add GlobalISel files to the dependencies if the user wants to build it.
OpenPOWER on IntegriCloud