brintos

brintos / llvm-project-archived public Read only

0
0
Text · 293 B · b9a6df1 Raw
10 lines · cpp
1// RUN: %clang_cc1 -triple spirv64 -x hip -emit-llvm -fcuda-is-device \2// RUN:   -o - %s | FileCheck %s3 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}10