annotate clang/test/Index/attributes-cuda.cu @ 173:0572611fdcc8 llvm10 llvm12

reorgnization done
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 11:55:54 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: c-index-test -test-load-source all -x cuda %s | FileCheck %s
anatofuz
parents:
diff changeset
2 // RUN: c-index-test -test-load-source all -x cuda --cuda-host-only %s | FileCheck %s
anatofuz
parents:
diff changeset
3 // RUN: c-index-test -test-load-source all -x cuda --cuda-device-only %s | FileCheck %s
anatofuz
parents:
diff changeset
4
anatofuz
parents:
diff changeset
5 __attribute__((device)) void f_device();
anatofuz
parents:
diff changeset
6 __attribute__((global)) void f_global();
anatofuz
parents:
diff changeset
7 __attribute__((constant)) int* g_constant;
anatofuz
parents:
diff changeset
8 __attribute__((shared)) float *g_shared;
anatofuz
parents:
diff changeset
9 __attribute__((host)) void f_host();
anatofuz
parents:
diff changeset
10 __attribute__((device_builtin)) void f_device_builtin();
anatofuz
parents:
diff changeset
11 typedef __attribute__((device_builtin)) const void *t_device_builtin;
anatofuz
parents:
diff changeset
12 enum __attribute__((device_builtin)) e_device_builtin {};
anatofuz
parents:
diff changeset
13 __attribute__((device_builtin)) int v_device_builtin;
anatofuz
parents:
diff changeset
14 __attribute__((cudart_builtin)) void f_cudart_builtin();
anatofuz
parents:
diff changeset
15 __attribute__((nv_weak)) void f_nv_weak();
anatofuz
parents:
diff changeset
16 __attribute__((device_builtin_surface_type)) unsigned long long surface_var;
anatofuz
parents:
diff changeset
17 __attribute__((device_builtin_texture_type)) unsigned long long texture_var;
anatofuz
parents:
diff changeset
18
anatofuz
parents:
diff changeset
19 // CHECK: attributes-cuda.cu:5:30: FunctionDecl=f_device:5:30
anatofuz
parents:
diff changeset
20 // CHECK-NEXT: attributes-cuda.cu:5:16: attribute(device)
anatofuz
parents:
diff changeset
21 // CHECK: attributes-cuda.cu:6:30: FunctionDecl=f_global:6:30
anatofuz
parents:
diff changeset
22 // CHECK-NEXT: attributes-cuda.cu:6:16: attribute(global)
anatofuz
parents:
diff changeset
23 // CHECK: attributes-cuda.cu:7:32: VarDecl=g_constant:7:32 (Definition)
anatofuz
parents:
diff changeset
24 // CHECK-NEXT: attributes-cuda.cu:7:16: attribute(constant)
anatofuz
parents:
diff changeset
25 // CHECK: attributes-cuda.cu:8:32: VarDecl=g_shared:8:32 (Definition)
anatofuz
parents:
diff changeset
26 // CHECK-NEXT: attributes-cuda.cu:8:16: attribute(shared)
anatofuz
parents:
diff changeset
27 // CHECK: attributes-cuda.cu:9:28: FunctionDecl=f_host:9:28
anatofuz
parents:
diff changeset
28 // CHECK-NEXT: attributes-cuda.cu:9:16: attribute(host)
anatofuz
parents:
diff changeset
29 // CHECK: attributes-cuda.cu:10:38: FunctionDecl=f_device_builtin:10:38
anatofuz
parents:
diff changeset
30 // CHECK: attributes-cuda.cu:11:53: TypedefDecl=t_device_builtin:11:53
anatofuz
parents:
diff changeset
31 // CHECK: attributes-cuda.cu:12:38: EnumDecl=e_device_builtin:12:38
anatofuz
parents:
diff changeset
32 // CHECK: attributes-cuda.cu:13:37: VarDecl=v_device_builtin:13:37
anatofuz
parents:
diff changeset
33 // CHECK: attributes-cuda.cu:14:38: FunctionDecl=f_cudart_builtin:14:38
anatofuz
parents:
diff changeset
34 // CHECK: attributes-cuda.cu:15:31: FunctionDecl=f_nv_weak:15:31
anatofuz
parents:
diff changeset
35 // CHECK: attributes-cuda.cu:16:65: VarDecl=surface_var:16:65
anatofuz
parents:
diff changeset
36 // CHECK: attributes-cuda.cu:17:65: VarDecl=texture_var:17:65