mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-23 13:35:42 -04:00

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 llvm-svn: 274220
13 lines
310 B
Common Lisp
13 lines
310 B
Common Lisp
// REQUIRES: amdgpu-registered-target
|
|
// RUN: %clang_cc1 -triple amdgcn-unknown-unknown -S -emit-llvm -o - %s | FileCheck %s
|
|
|
|
// CHECK: define amdgpu_kernel void @calling_conv_amdgpu_kernel()
|
|
kernel void calling_conv_amdgpu_kernel()
|
|
{
|
|
}
|
|
|
|
// CHECK: define void @calling_conv_none()
|
|
void calling_conv_none()
|
|
{
|
|
}
|