AMDGPU/GlobalISel: Don't try to lower hull shaders
authorTom Stellard <tstellar@redhat.com>
Mon, 7 May 2018 22:17:54 +0000 (22:17 +0000)
committerTom Stellard <tstellar@redhat.com>
Mon, 7 May 2018 22:17:54 +0000 (22:17 +0000)
Summary: The AMDGPU_HS calling convention is not supported yet.

Reviewers: arsenm, nhaehnle

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

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

llvm-svn: 331691

llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp

index 7f1b926..fde51d9 100644 (file)
@@ -88,8 +88,9 @@ void AMDGPUCallLowering::lowerParameter(MachineIRBuilder &MIRBuilder,
 bool AMDGPUCallLowering::lowerFormalArguments(MachineIRBuilder &MIRBuilder,
                                               const Function &F,
                                               ArrayRef<unsigned> VRegs) const {
-  // AMDGPU_GS is not supported yet.
-  if (F.getCallingConv() == CallingConv::AMDGPU_GS)
+  // AMDGPU_GS and AMDGP_HS are not supported yet.
+  if (F.getCallingConv() == CallingConv::AMDGPU_GS ||
+      F.getCallingConv() == CallingConv::AMDGPU_HS)
     return false;
 
   MachineFunction &MF = MIRBuilder.getMF();