From 6c81418a63b59808be12ed567c8e984a31f4822a Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 30 Apr 2018 15:15:23 +0000 Subject: [PATCH] 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 --- llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp b/llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp index 3fd5c8de39ce..7f1b92698b12 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp @@ -88,6 +88,9 @@ void AMDGPUCallLowering::lowerParameter(MachineIRBuilder &MIRBuilder, bool AMDGPUCallLowering::lowerFormalArguments(MachineIRBuilder &MIRBuilder, const Function &F, ArrayRef VRegs) const { + // AMDGPU_GS is not supported yet. + if (F.getCallingConv() == CallingConv::AMDGPU_GS) + return false; MachineFunction &MF = MIRBuilder.getMF(); const SISubtarget *Subtarget = static_cast(&MF.getSubtarget());