[PATCH] D21367: AMDGPU: Set amdgpu_kernel calling convention for OpenCL kernels.

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 27 10:31:42 PDT 2016


yaxunl added a comment.

In http://reviews.llvm.org/D21367#467982, @nhaustov wrote:

> In http://reviews.llvm.org/D21367#467894, @yaxunl wrote:
>
> > I am wondering what's the difference between this calling convention and spir_kernel.
>
>
> spir_kernel has only effect and was created only for SPIR target. In theory it could perhaps be reused for AMDGPU target, however it seems not very clear to me.


If the new calling convention is to indicate a function is an OpenCL kernel, then it has exactly the same meaning as spir_kernel. Can we just use it in AMDGPU target?


http://reviews.llvm.org/D21367





More information about the cfe-commits mailing list