[PATCH] D47733: [CUDA][HIP] Set kernel calling convention before arrange function

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 4 11:24:02 PDT 2018


yaxunl created this revision.
yaxunl added reviewers: rjmccall, tra.

Currently clang set kernel calling convention for CUDA/HIP after
arranging function, which causes incorrect kernel function type since
it depends on calling convention.

This patch moves setting kernel convention before arranging
function.


https://reviews.llvm.org/D47733

Files:
  lib/CodeGen/CGCall.cpp
  lib/CodeGen/CodeGenModule.cpp
  lib/CodeGen/TargetInfo.cpp
  lib/CodeGen/TargetInfo.h
  test/CodeGenCUDA/kernel-args-amdgcn.cu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47733.149811.patch
Type: text/x-patch
Size: 4517 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180604/5cbe98a1/attachment.bin>


More information about the cfe-commits mailing list