diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2013-04-08 18:45:10 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2013-04-08 18:45:10 +0000 |
| commit | 809500fc2c13c8173a16b052304d983864e4a1e1 (patch) | |
| tree | 4fc2f184c499d106f29a386c452b49e5197bf63d /test/CodeGenCUDA | |
| parent | be7c9ec198dcdb5bf73a35bfbb00b3333cb87909 (diff) | |
Notes
Diffstat (limited to 'test/CodeGenCUDA')
| -rw-r--r-- | test/CodeGenCUDA/ptx-kernels.cu | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test/CodeGenCUDA/ptx-kernels.cu b/test/CodeGenCUDA/ptx-kernels.cu index f0bf2952a126..8d34f4f3a654 100644 --- a/test/CodeGenCUDA/ptx-kernels.cu +++ b/test/CodeGenCUDA/ptx-kernels.cu @@ -2,11 +2,15 @@ #include "../SemaCUDA/cuda.h" -// CHECK: define ptx_device{{.*}}device_function +// CHECK: define void @device_function +extern "C" __device__ void device_function() {} -// CHECK: define ptx_kernel{{.*}}global_function +// CHECK: define void @global_function +extern "C" __global__ void global_function() { - // CHECK: call ptx_device{{.*}}device_function + // CHECK: call void @device_function device_function(); } + +// CHECK: !{{[0-9]+}} = metadata !{void ()* @global_function, metadata !"kernel", i32 1} |
