17 lines · plain
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 %s4 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 %s8 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_name13__global__ void kernel(int arg1, float *arg2) {14}15 16// CHECK: [[MD]] = !{!"arg1", !"arg2"}17