]> granicus.if.org Git - clang/commit
AMDGPU: Set amdgpu_kernel calling convention for OpenCL kernels.
authorNikolay Haustov <Nikolay.Haustov@amd.com>
Thu, 30 Jun 2016 09:06:33 +0000 (09:06 +0000)
committerNikolay Haustov <Nikolay.Haustov@amd.com>
Thu, 30 Jun 2016 09:06:33 +0000 (09:06 +0000)
commitd8d49375956fecbedbeec46a2dc2f982368c3478
treeabda8fc44829ecfa17123548f1707375c84878d9
parent646f4dd56a30290e5b64a227efac8ccd73fe953d
AMDGPU: Set amdgpu_kernel calling convention for OpenCL kernels.

Summary:
Summary:
Change Clang calling convention SpirKernel to OpenCLKernel.
Set calling convention OpenCLKernel for amdgcn as well.
Add virtual method .getOpenCLKernelCallingConv() to TargetCodeGenInfo
and use it to set target calling convention for AMDGPU and SPIR.
Update tests.

Reviewers: rsmith, tstellarAMD, Anastasia, yaxunl

Subscribers: kzhuravl, cfe-commits

Differential Revision: http://reviews.llvm.org/D21367

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@274220 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
include/clang/Basic/Specifiers.h
lib/AST/ItaniumMangle.cpp
lib/AST/Type.cpp
lib/AST/TypePrinter.cpp
lib/Basic/Targets.cpp
lib/CodeGen/CGCall.cpp
lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CodeGenTypes.h
lib/CodeGen/TargetInfo.cpp
lib/CodeGen/TargetInfo.h
lib/Sema/SemaType.cpp
test/CodeGenOpenCL/amdgpu-call-kernel.cl [new file with mode: 0755]
test/CodeGenOpenCL/amdgpu-calling-conv.cl [new file with mode: 0644]
test/CodeGenOpenCL/amdgpu-num-gpr-attr.cl
tools/libclang/CXType.cpp