diff options
| author | Yaxun Liu <Yaxun.Liu@amd.com> | 2019-06-14 15:54:47 +0000 |
|---|---|---|
| committer | Yaxun Liu <Yaxun.Liu@amd.com> | 2019-06-14 15:54:47 +0000 |
| commit | cabce71845f442fdf5fde2459b94efae8aef241f (patch) | |
| tree | 52dd7928d64904da38efe12235ec1cc799a92737 /clang/test/CodeGenCUDA | |
| parent | 573ffd88a0e312c71fbeaaf781c569c9cb51e5e8 (diff) | |
| download | bcm5719-llvm-cabce71845f442fdf5fde2459b94efae8aef241f.tar.gz bcm5719-llvm-cabce71845f442fdf5fde2459b94efae8aef241f.zip | |
[AMDGPU] Enable the implicit arguments for HIP (CLANG)
Enable 48-bytes of implicit arguments for HIP as well. Earlier it was enabled for OpenCL. This code is specific to AMDGPU target.
Differential Revision: https://reviews.llvm.org/D62244
llvm-svn: 363414
Diffstat (limited to 'clang/test/CodeGenCUDA')
| -rw-r--r-- | clang/test/CodeGenCUDA/amdgpu-hip-implicit-kernarg.cu | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/test/CodeGenCUDA/amdgpu-hip-implicit-kernarg.cu b/clang/test/CodeGenCUDA/amdgpu-hip-implicit-kernarg.cu new file mode 100644 index 00000000000..8f730ac14c5 --- /dev/null +++ b/clang/test/CodeGenCUDA/amdgpu-hip-implicit-kernarg.cu @@ -0,0 +1,8 @@ +// REQUIRES: amdgpu-registered-target +// RUN: %clang_cc1 -triple amdgcn-amd-amdhsa -fcuda-is-device -emit-llvm -x hip -o - %s | FileCheck %s +#include "Inputs/cuda.h" + +__global__ void hip_kernel_temp() { +} + +// CHECK: attributes {{.*}} = {{.*}} "amdgpu-implicitarg-num-bytes"="48" |

