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.
Paths
| Differential D47733
[CUDA][HIP] Set kernel calling convention before arrange function ClosedPublic Authored by yaxunl on Jun 4 2018, 11:23 AM.
Details Summary Currently clang set kernel calling convention for CUDA/HIP after This patch moves setting kernel convention before arranging
Diff Detail
Event TimelineComment Actions Looks OK overall, but I'm not very familiar with CGCall, so you may want to dig through the history and find someone with more expertise.
This revision is now accepted and ready to land.Jun 11 2018, 11:56 AM Closed by commit rL334457: [CUDA][HIP] Set kernel calling convention before arrange function (authored by yaxunl). · Explain WhyJun 11 2018, 5:20 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 150869 cfe/trunk/lib/CodeGen/CGCall.cpp
cfe/trunk/lib/CodeGen/CodeGenModule.cpp
cfe/trunk/lib/CodeGen/TargetInfo.h
cfe/trunk/lib/CodeGen/TargetInfo.cpp
cfe/trunk/test/CodeGenCUDA/kernel-args.cu
|