[PATCH] D19917: AMDGPU/SI: Add amdgpu_kernel calling convention.

Tom Stellard via llvm-commits llvm-commits at lists.llvm.org
Wed May 4 07:37:30 PDT 2016


tstellarAMD added inline comments.

================
Comment at: lib/Target/AMDGPU/AMDGPUMachineFunction.cpp:16
@@ -15,2 +15,3 @@
   ScratchSize(0),
-  IsKernel(true) {
+  IsKernel(MF.getFunction()->getCallingConv() == llvm::CallingConv::AMDGPU_KERNEL)
+{
----------------
This is going to break all frontends which don't emit this calling convention.  I think we will need to keep this hard-coded to true until we can update the frontends.


http://reviews.llvm.org/D19917





More information about the llvm-commits mailing list