brintos

brintos / llvm-project-archived public Read only

0
0
Text · 506 B · 9e575d2 Raw
13 lines · plain
1// RUN: %clang_cc1 -fcuda-is-device -triple spirv32 -o - -emit-llvm -x cuda %s  | FileCheck %s2// RUN: %clang_cc1 -fcuda-is-device -triple spirv64 -o - -emit-llvm -x cuda %s  | FileCheck %s3 4// Verifies that building CUDA targeting SPIR-V {32,64} generates LLVM IR with5// spir_kernel attributes for kernel functions.6 7// CHECK: define spir_kernel void @_Z6kernelv()8 9__attribute__((global)) void kernel() { return; }10 11// CHECK: !opencl.ocl.version = !{[[OCL:![0-9]+]]}12// CHECK: [[OCL]] = !{i32 2, i32 0}13