AMDGPU/GlobalISel: Don't try to lower geometry shaders

Summary: The AMDGPU_GS calling convention is not supported yet.

Reviewers: arsenm, nhaehnle

Reviewed By: nhaehnle

Subscribers: kzhuravl, wdng, yaxunl, rovka, kristof.beyls, dstuttard, tpr, t-tye, llvm-commits

Differential Revision: https://reviews.llvm.org/D46041

llvm-svn: 331186
This commit is contained in:
Tom Stellard 2018-04-30 15:15:23 +00:00
parent 432a38838d
commit 6c81418a63
1 changed files with 3 additions and 0 deletions

View File

@ -88,6 +88,9 @@ void AMDGPUCallLowering::lowerParameter(MachineIRBuilder &MIRBuilder,
bool AMDGPUCallLowering::lowerFormalArguments(MachineIRBuilder &MIRBuilder, bool AMDGPUCallLowering::lowerFormalArguments(MachineIRBuilder &MIRBuilder,
const Function &F, const Function &F,
ArrayRef<unsigned> VRegs) const { ArrayRef<unsigned> VRegs) const {
// AMDGPU_GS is not supported yet.
if (F.getCallingConv() == CallingConv::AMDGPU_GS)
return false;
MachineFunction &MF = MIRBuilder.getMF(); MachineFunction &MF = MIRBuilder.getMF();
const SISubtarget *Subtarget = static_cast<const SISubtarget *>(&MF.getSubtarget()); const SISubtarget *Subtarget = static_cast<const SISubtarget *>(&MF.getSubtarget());