annotate gcc/c-family/c-pragma.h @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 /* Pragma related interfaces.
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
2 Copyright (C) 1995-2020 Free Software Foundation, Inc.
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 This file is part of GCC.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 GCC is free software; you can redistribute it and/or modify it under
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 the terms of the GNU General Public License as published by the Free
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 Software Foundation; either version 3, or (at your option) any later
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 version.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 for more details.
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 along with GCC; see the file COPYING3. If not see
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 <http://www.gnu.org/licenses/>. */
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 #ifndef GCC_C_PRAGMA_H
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 #define GCC_C_PRAGMA_H
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 #include "cpplib.h" /* For enum cpp_ttype. */
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 /* Pragma identifiers built in to the front end parsers. Identifiers
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 for ancillary handlers will follow these. */
111
kono
parents: 68
diff changeset
27 enum pragma_kind {
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 PRAGMA_NONE = 0,
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
29
111
kono
parents: 68
diff changeset
30 PRAGMA_OACC_ATOMIC,
kono
parents: 68
diff changeset
31 PRAGMA_OACC_CACHE,
kono
parents: 68
diff changeset
32 PRAGMA_OACC_DATA,
kono
parents: 68
diff changeset
33 PRAGMA_OACC_DECLARE,
kono
parents: 68
diff changeset
34 PRAGMA_OACC_ENTER_DATA,
kono
parents: 68
diff changeset
35 PRAGMA_OACC_EXIT_DATA,
kono
parents: 68
diff changeset
36 PRAGMA_OACC_HOST_DATA,
kono
parents: 68
diff changeset
37 PRAGMA_OACC_KERNELS,
kono
parents: 68
diff changeset
38 PRAGMA_OACC_LOOP,
kono
parents: 68
diff changeset
39 PRAGMA_OACC_PARALLEL,
kono
parents: 68
diff changeset
40 PRAGMA_OACC_ROUTINE,
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
41 PRAGMA_OACC_SERIAL,
111
kono
parents: 68
diff changeset
42 PRAGMA_OACC_UPDATE,
kono
parents: 68
diff changeset
43 PRAGMA_OACC_WAIT,
kono
parents: 68
diff changeset
44
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
45 PRAGMA_OMP_ATOMIC,
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
46 PRAGMA_OMP_BARRIER,
111
kono
parents: 68
diff changeset
47 PRAGMA_OMP_CANCEL,
kono
parents: 68
diff changeset
48 PRAGMA_OMP_CANCELLATION_POINT,
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
49 PRAGMA_OMP_CRITICAL,
111
kono
parents: 68
diff changeset
50 PRAGMA_OMP_DECLARE,
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
51 PRAGMA_OMP_DEPOBJ,
111
kono
parents: 68
diff changeset
52 PRAGMA_OMP_DISTRIBUTE,
kono
parents: 68
diff changeset
53 PRAGMA_OMP_END_DECLARE_TARGET,
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
54 PRAGMA_OMP_FLUSH,
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
55 PRAGMA_OMP_FOR,
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
56 PRAGMA_OMP_LOOP,
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
57 PRAGMA_OMP_MASTER,
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
58 PRAGMA_OMP_ORDERED,
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
59 PRAGMA_OMP_PARALLEL,
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
60 PRAGMA_OMP_REQUIRES,
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
61 PRAGMA_OMP_SCAN,
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
62 PRAGMA_OMP_SECTION,
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
63 PRAGMA_OMP_SECTIONS,
111
kono
parents: 68
diff changeset
64 PRAGMA_OMP_SIMD,
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
65 PRAGMA_OMP_SINGLE,
111
kono
parents: 68
diff changeset
66 PRAGMA_OMP_TARGET,
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
67 PRAGMA_OMP_TASK,
111
kono
parents: 68
diff changeset
68 PRAGMA_OMP_TASKGROUP,
kono
parents: 68
diff changeset
69 PRAGMA_OMP_TASKLOOP,
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
70 PRAGMA_OMP_TASKWAIT,
111
kono
parents: 68
diff changeset
71 PRAGMA_OMP_TASKYIELD,
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
72 PRAGMA_OMP_THREADPRIVATE,
111
kono
parents: 68
diff changeset
73 PRAGMA_OMP_TEAMS,
kono
parents: 68
diff changeset
74
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
75 PRAGMA_GCC_PCH_PREPROCESS,
111
kono
parents: 68
diff changeset
76 PRAGMA_IVDEP,
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
77 PRAGMA_UNROLL,
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
78
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
79 PRAGMA_FIRST_EXTERNAL
111
kono
parents: 68
diff changeset
80 };
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
81
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
82
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
83 /* All clauses defined by OpenACC 2.0, and OpenMP 2.5, 3.0, 3.1, 4.0, 4.5
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
84 and 5.0. Used internally by both C and C++ parsers. */
111
kono
parents: 68
diff changeset
85 enum pragma_omp_clause {
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
86 PRAGMA_OMP_CLAUSE_NONE = 0,
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
87
111
kono
parents: 68
diff changeset
88 PRAGMA_OMP_CLAUSE_ALIGNED,
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
89 PRAGMA_OMP_CLAUSE_BIND,
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
90 PRAGMA_OMP_CLAUSE_COLLAPSE,
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
91 PRAGMA_OMP_CLAUSE_COPYIN,
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
92 PRAGMA_OMP_CLAUSE_COPYPRIVATE,
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
93 PRAGMA_OMP_CLAUSE_DEFAULT,
111
kono
parents: 68
diff changeset
94 PRAGMA_OMP_CLAUSE_DEFAULTMAP,
kono
parents: 68
diff changeset
95 PRAGMA_OMP_CLAUSE_DEPEND,
kono
parents: 68
diff changeset
96 PRAGMA_OMP_CLAUSE_DEVICE,
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
97 PRAGMA_OMP_CLAUSE_DEVICE_TYPE,
111
kono
parents: 68
diff changeset
98 PRAGMA_OMP_CLAUSE_DIST_SCHEDULE,
kono
parents: 68
diff changeset
99 PRAGMA_OMP_CLAUSE_FINAL,
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
100 PRAGMA_OMP_CLAUSE_FIRSTPRIVATE,
111
kono
parents: 68
diff changeset
101 PRAGMA_OMP_CLAUSE_FOR,
kono
parents: 68
diff changeset
102 PRAGMA_OMP_CLAUSE_FROM,
kono
parents: 68
diff changeset
103 PRAGMA_OMP_CLAUSE_GRAINSIZE,
kono
parents: 68
diff changeset
104 PRAGMA_OMP_CLAUSE_HINT,
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
105 PRAGMA_OMP_CLAUSE_IF,
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
106 PRAGMA_OMP_CLAUSE_IN_REDUCTION,
111
kono
parents: 68
diff changeset
107 PRAGMA_OMP_CLAUSE_INBRANCH,
kono
parents: 68
diff changeset
108 PRAGMA_OMP_CLAUSE_IS_DEVICE_PTR,
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
109 PRAGMA_OMP_CLAUSE_LASTPRIVATE,
111
kono
parents: 68
diff changeset
110 PRAGMA_OMP_CLAUSE_LINEAR,
kono
parents: 68
diff changeset
111 PRAGMA_OMP_CLAUSE_LINK,
kono
parents: 68
diff changeset
112 PRAGMA_OMP_CLAUSE_MAP,
kono
parents: 68
diff changeset
113 PRAGMA_OMP_CLAUSE_MERGEABLE,
kono
parents: 68
diff changeset
114 PRAGMA_OMP_CLAUSE_NOGROUP,
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
115 PRAGMA_OMP_CLAUSE_NONTEMPORAL,
111
kono
parents: 68
diff changeset
116 PRAGMA_OMP_CLAUSE_NOTINBRANCH,
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
117 PRAGMA_OMP_CLAUSE_NOWAIT,
111
kono
parents: 68
diff changeset
118 PRAGMA_OMP_CLAUSE_NUM_TASKS,
kono
parents: 68
diff changeset
119 PRAGMA_OMP_CLAUSE_NUM_TEAMS,
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
120 PRAGMA_OMP_CLAUSE_NUM_THREADS,
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
121 PRAGMA_OMP_CLAUSE_ORDER,
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
122 PRAGMA_OMP_CLAUSE_ORDERED,
111
kono
parents: 68
diff changeset
123 PRAGMA_OMP_CLAUSE_PARALLEL,
kono
parents: 68
diff changeset
124 PRAGMA_OMP_CLAUSE_PRIORITY,
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
125 PRAGMA_OMP_CLAUSE_PRIVATE,
111
kono
parents: 68
diff changeset
126 PRAGMA_OMP_CLAUSE_PROC_BIND,
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
127 PRAGMA_OMP_CLAUSE_REDUCTION,
111
kono
parents: 68
diff changeset
128 PRAGMA_OMP_CLAUSE_SAFELEN,
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
129 PRAGMA_OMP_CLAUSE_SCHEDULE,
111
kono
parents: 68
diff changeset
130 PRAGMA_OMP_CLAUSE_SECTIONS,
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
131 PRAGMA_OMP_CLAUSE_SHARED,
111
kono
parents: 68
diff changeset
132 PRAGMA_OMP_CLAUSE_SIMD,
kono
parents: 68
diff changeset
133 PRAGMA_OMP_CLAUSE_SIMDLEN,
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
134 PRAGMA_OMP_CLAUSE_TASK_REDUCTION,
111
kono
parents: 68
diff changeset
135 PRAGMA_OMP_CLAUSE_TASKGROUP,
kono
parents: 68
diff changeset
136 PRAGMA_OMP_CLAUSE_THREAD_LIMIT,
kono
parents: 68
diff changeset
137 PRAGMA_OMP_CLAUSE_THREADS,
kono
parents: 68
diff changeset
138 PRAGMA_OMP_CLAUSE_TO,
kono
parents: 68
diff changeset
139 PRAGMA_OMP_CLAUSE_UNIFORM,
kono
parents: 68
diff changeset
140 PRAGMA_OMP_CLAUSE_UNTIED,
kono
parents: 68
diff changeset
141 PRAGMA_OMP_CLAUSE_USE_DEVICE_PTR,
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
142 PRAGMA_OMP_CLAUSE_USE_DEVICE_ADDR,
111
kono
parents: 68
diff changeset
143
kono
parents: 68
diff changeset
144 /* Clauses for OpenACC. */
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
145 PRAGMA_OACC_CLAUSE_ASYNC,
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
146 PRAGMA_OACC_CLAUSE_ATTACH,
111
kono
parents: 68
diff changeset
147 PRAGMA_OACC_CLAUSE_AUTO,
kono
parents: 68
diff changeset
148 PRAGMA_OACC_CLAUSE_COPY,
kono
parents: 68
diff changeset
149 PRAGMA_OACC_CLAUSE_COPYOUT,
kono
parents: 68
diff changeset
150 PRAGMA_OACC_CLAUSE_CREATE,
kono
parents: 68
diff changeset
151 PRAGMA_OACC_CLAUSE_DELETE,
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
152 PRAGMA_OACC_CLAUSE_DETACH,
111
kono
parents: 68
diff changeset
153 PRAGMA_OACC_CLAUSE_DEVICEPTR,
kono
parents: 68
diff changeset
154 PRAGMA_OACC_CLAUSE_DEVICE_RESIDENT,
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
155 PRAGMA_OACC_CLAUSE_FINALIZE,
111
kono
parents: 68
diff changeset
156 PRAGMA_OACC_CLAUSE_GANG,
kono
parents: 68
diff changeset
157 PRAGMA_OACC_CLAUSE_HOST,
kono
parents: 68
diff changeset
158 PRAGMA_OACC_CLAUSE_INDEPENDENT,
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
159 PRAGMA_OACC_CLAUSE_NO_CREATE,
111
kono
parents: 68
diff changeset
160 PRAGMA_OACC_CLAUSE_NUM_GANGS,
kono
parents: 68
diff changeset
161 PRAGMA_OACC_CLAUSE_NUM_WORKERS,
kono
parents: 68
diff changeset
162 PRAGMA_OACC_CLAUSE_PRESENT,
kono
parents: 68
diff changeset
163 PRAGMA_OACC_CLAUSE_SELF,
kono
parents: 68
diff changeset
164 PRAGMA_OACC_CLAUSE_SEQ,
kono
parents: 68
diff changeset
165 PRAGMA_OACC_CLAUSE_TILE,
kono
parents: 68
diff changeset
166 PRAGMA_OACC_CLAUSE_VECTOR,
kono
parents: 68
diff changeset
167 PRAGMA_OACC_CLAUSE_VECTOR_LENGTH,
kono
parents: 68
diff changeset
168 PRAGMA_OACC_CLAUSE_WAIT,
kono
parents: 68
diff changeset
169 PRAGMA_OACC_CLAUSE_WORKER,
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
170 PRAGMA_OACC_CLAUSE_IF_PRESENT,
111
kono
parents: 68
diff changeset
171 PRAGMA_OACC_CLAUSE_COLLAPSE = PRAGMA_OMP_CLAUSE_COLLAPSE,
kono
parents: 68
diff changeset
172 PRAGMA_OACC_CLAUSE_COPYIN = PRAGMA_OMP_CLAUSE_COPYIN,
kono
parents: 68
diff changeset
173 PRAGMA_OACC_CLAUSE_DEVICE = PRAGMA_OMP_CLAUSE_DEVICE,
kono
parents: 68
diff changeset
174 PRAGMA_OACC_CLAUSE_DEFAULT = PRAGMA_OMP_CLAUSE_DEFAULT,
kono
parents: 68
diff changeset
175 PRAGMA_OACC_CLAUSE_FIRSTPRIVATE = PRAGMA_OMP_CLAUSE_FIRSTPRIVATE,
kono
parents: 68
diff changeset
176 PRAGMA_OACC_CLAUSE_IF = PRAGMA_OMP_CLAUSE_IF,
kono
parents: 68
diff changeset
177 PRAGMA_OACC_CLAUSE_PRIVATE = PRAGMA_OMP_CLAUSE_PRIVATE,
kono
parents: 68
diff changeset
178 PRAGMA_OACC_CLAUSE_REDUCTION = PRAGMA_OMP_CLAUSE_REDUCTION,
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
179 PRAGMA_OACC_CLAUSE_LINK = PRAGMA_OMP_CLAUSE_LINK,
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
180 PRAGMA_OACC_CLAUSE_USE_DEVICE = PRAGMA_OMP_CLAUSE_USE_DEVICE_PTR
111
kono
parents: 68
diff changeset
181 };
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
182
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
183 extern struct cpp_reader* parse_in;
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
184
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
185 /* It's safe to always leave visibility pragma enabled as if
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
186 visibility is not supported on the host OS platform the
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
187 statements are ignored. */
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
188 extern void push_visibility (const char *, int);
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
189 extern bool pop_visibility (int);
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
190
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
191 extern void init_pragma (void);
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
192
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
193 /* Front-end wrappers for pragma registration. */
111
kono
parents: 68
diff changeset
194 typedef void (*pragma_handler_1arg)(struct cpp_reader *);
kono
parents: 68
diff changeset
195 /* A second pragma handler, which adds a void * argument allowing to pass extra
kono
parents: 68
diff changeset
196 data to the handler. */
kono
parents: 68
diff changeset
197 typedef void (*pragma_handler_2arg)(struct cpp_reader *, void *);
kono
parents: 68
diff changeset
198
kono
parents: 68
diff changeset
199 /* This union allows to abstract the different handlers. */
kono
parents: 68
diff changeset
200 union gen_pragma_handler {
kono
parents: 68
diff changeset
201 pragma_handler_1arg handler_1arg;
kono
parents: 68
diff changeset
202 pragma_handler_2arg handler_2arg;
kono
parents: 68
diff changeset
203 };
kono
parents: 68
diff changeset
204 /* Internally used to keep the data of the handler. */
kono
parents: 68
diff changeset
205 struct internal_pragma_handler {
kono
parents: 68
diff changeset
206 union gen_pragma_handler handler;
kono
parents: 68
diff changeset
207 /* Permits to know if handler is a pragma_handler_1arg (extra_data is false)
kono
parents: 68
diff changeset
208 or a pragma_handler_2arg (extra_data is true). */
kono
parents: 68
diff changeset
209 bool extra_data;
kono
parents: 68
diff changeset
210 /* A data field which can be used when extra_data is true. */
kono
parents: 68
diff changeset
211 void * data;
kono
parents: 68
diff changeset
212 };
kono
parents: 68
diff changeset
213
kono
parents: 68
diff changeset
214 extern void c_register_pragma (const char *space, const char *name,
kono
parents: 68
diff changeset
215 pragma_handler_1arg handler);
kono
parents: 68
diff changeset
216 extern void c_register_pragma_with_data (const char *space, const char *name,
kono
parents: 68
diff changeset
217 pragma_handler_2arg handler,
kono
parents: 68
diff changeset
218 void *data);
kono
parents: 68
diff changeset
219
kono
parents: 68
diff changeset
220 extern void c_register_pragma_with_expansion (const char *space,
kono
parents: 68
diff changeset
221 const char *name,
kono
parents: 68
diff changeset
222 pragma_handler_1arg handler);
kono
parents: 68
diff changeset
223 extern void c_register_pragma_with_expansion_and_data (const char *space,
kono
parents: 68
diff changeset
224 const char *name,
kono
parents: 68
diff changeset
225 pragma_handler_2arg handler,
kono
parents: 68
diff changeset
226 void *data);
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
227 extern void c_invoke_pragma_handler (unsigned int);
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
228
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
229 extern void maybe_apply_pragma_weak (tree);
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
230 extern void maybe_apply_pending_pragma_weaks (void);
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
231 extern tree maybe_apply_renaming_pragma (tree, tree);
111
kono
parents: 68
diff changeset
232 extern void maybe_apply_pragma_scalar_storage_order (tree);
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
233 extern void add_to_renaming_pragma_list (tree, tree);
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
234
111
kono
parents: 68
diff changeset
235 extern enum cpp_ttype pragma_lex (tree *, location_t *loc = NULL);
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
236
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
237 /* Flags for use with c_lex_with_flags. The values here were picked
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
238 so that 0 means to translate and join strings. */
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
239 #define C_LEX_STRING_NO_TRANSLATE 1 /* Do not lex strings into
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
240 execution character set. */
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
241 #define C_LEX_STRING_NO_JOIN 2 /* Do not concatenate strings
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
242 nor translate them into execution
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
243 character set. */
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
244
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
245 /* This is not actually available to pragma parsers. It's merely a
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
246 convenient location to declare this function for c-lex, after
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
247 having enum cpp_ttype declared. */
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
248 extern enum cpp_ttype c_lex_with_flags (tree *, location_t *, unsigned char *,
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
249 int);
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
250
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
251 extern void c_pp_lookup_pragma (unsigned int, const char **, const char **);
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
252
111
kono
parents: 68
diff changeset
253 extern GTY(()) tree pragma_extern_prefix;
kono
parents: 68
diff changeset
254
68
561a7518be6b update gcc-4.6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
255 #endif /* GCC_C_PRAGMA_H */