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
|
|
|
//=- AMDGPURegisterBank.td - Describe the AMDGPU Banks -------*- tablegen -*-=//
|
|
|
|
//
|
2019-01-19 09:50:56 +01:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
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
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
def SGPRRegBank : RegisterBank<"SGPR",
|
|
|
|
[SReg_32, SReg_64, SReg_128, SReg_256, SReg_512]
|
|
|
|
>;
|
|
|
|
|
|
|
|
def VGPRRegBank : RegisterBank<"VGPR",
|
|
|
|
[VGPR_32, VReg_64, VReg_96, VReg_128, VReg_256, VReg_512]
|
|
|
|
>;
|
2018-03-01 20:27:10 +01:00
|
|
|
|
2019-01-08 07:30:53 +01:00
|
|
|
def SCCRegBank : RegisterBank <"SCC", [SCC_CLASS]>;
|
|
|
|
|
|
|
|
// It is helpful to distinguish conditions from ordinary SGPRs.
|
|
|
|
def VCCRegBank : RegisterBank <"VCC", [SReg_64]>;
|