1 // RUN: %clang_cc1 -fcuda-is-device -triple spirv32 -o - -emit-llvm -x cuda %s | FileCheck %s 2 // RUN: %clang_cc1 -fcuda-is-device -triple spirv64 -o - -emit-llvm -x cuda %s | FileCheck %s 3 4 // Verifies that building CUDA targeting SPIR-V {32,64} generates LLVM IR with 5 // spir_kernel attributes for kernel functions. 6 7 // CHECK: define spir_kernel void @_Z6kernelv() 8 9 __attribute__((global)) void kernel() { return; } 10