Debian Codegraph @

clang/test/CodeGenHIP/hipspv-kernel.cpp

raw
1 // RUN: %clang_cc1 -triple spirv64 -x hip -emit-llvm -fcuda-is-device \
2 // RUN: -o - %s | FileCheck %s
3
4 #define __global__ __attribute__((global))
5
6 // CHECK: define {{.*}}spir_kernel void @_Z3fooPff(ptr addrspace(1) {{.*}}, float {{.*}})
7 __global__ void foo(float *a, float b) {
8 *a = b;
9 }