| 1 |
// RUN: %clang_cc1 -triple amdgcn-amd-amdhsa -fhip-kernel-arg-name \ |
| 2 |
// RUN: -fcuda-is-device -emit-llvm -o - -x hip %s \ |
| 3 |
// RUN: | FileCheck %s |
| 4 |
|
| 5 |
// RUN: %clang_cc1 -triple amdgcn-amd-amdhsa \ |
| 6 |
// RUN: -fcuda-is-device -emit-llvm -o - -x hip %s \ |
| 7 |
// RUN: | FileCheck -check-prefix=NEG %s |
| 8 |
|
| 9 |
#include "Inputs/cuda.h" |
| 10 |
|
| 11 |
// CHECK: define{{.*}} amdgpu_kernel void @_Z6kerneliPf({{.*}} !kernel_arg_name [[MD:![0-9]+]] |
| 12 |
// NEG-NOT: define{{.*}} amdgpu_kernel void @_Z6kerneliPf({{.*}} !kernel_arg_name |
| 13 |
__global__ void kernel(int arg1, float *arg2) { |
| 14 |
} |
| 15 |
|
| 16 |
// CHECK: [[MD]] = !{!"arg1", !"arg2"} |