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

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 28 12:52:07 PDT 2016


yaxunl added a comment.



> Maybe we can use the fact that calling conventions are separate in AST and in LLVM IR. So in AST maybe we can have opencl_kernel and in LLVM it can map to spir_kernel for SPIR and amdgpu_kernel for AMDGPU.


This approach looks good to me. Thanks.


http://reviews.llvm.org/D21367





More information about the cfe-commits mailing list