AMDGPU/GlobalISel: Don't reject shader types
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 5 Aug 2019 14:40:23 +0000 (14:40 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 5 Aug 2019 14:40:23 +0000 (14:40 +0000)
I'm not sure what complications these present, but the current
argument lowering is pretty much directly copied from the DAG
lowering, so I assume these work as they should.

No tests because I'm lazy and things are getting pretty close to the
point where the existing calling-conventions.ll can be shared with
SelectionDAG.

llvm-svn: 367870

llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp

index c860d79..905443f 100644 (file)
@@ -555,10 +555,6 @@ bool AMDGPUCallLowering::lowerFormalArguments(
   if (CC == CallingConv::AMDGPU_KERNEL)
     return lowerFormalArgumentsKernel(MIRBuilder, F, VRegs);
 
-  // AMDGPU_GS and AMDGP_HS are not supported yet.
-  if (CC == CallingConv::AMDGPU_GS || CC == CallingConv::AMDGPU_HS)
-    return false;
-
   const bool IsShader = AMDGPU::isShader(CC);
   const bool IsEntryFunc = AMDGPU::isEntryFunctionCC(CC);