Debian Codegraph @

llvm-project/llvm/projects/llvm-spirv/lib/SPIRV/libSPIRV/OpenCL.std.h

raw
1 // clang-format off
2 /*
3 ** Copyright (c) 2015 The Khronos Group Inc.
4 **
5 ** Permission is hereby granted, free of charge, to any person obtaining a copy
6 ** of this software and/or associated documentation files (the "Materials"),
7 ** to deal in the Materials without restriction, including without limitation
8 ** the rights to use, copy, modify, merge, publish, distribute, sublicense,
9 ** and/or sell copies of the Materials, and to permit persons to whom the
10 ** Materials are furnished to do so, subject to the following conditions:
11 **
12 ** The above copyright notice and this permission notice shall be included in
13 ** all copies or substantial portions of the Materials.
14 **
15 ** MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS KHRONOS
16 ** STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS SPECIFICATIONS AND
17 ** HEADER INFORMATION ARE LOCATED AT https://www.khronos.org/registry/
18 **
19 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20 ** OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 ** FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22 ** THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 ** LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
24 ** FROM,OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS
25 ** IN THE MATERIALS.
26 */
27
28 //
29 // Author: Boaz Ouriel, Intel
30 //
31
32 namespace OpenCLLIB {
33
34 enum Entrypoints {
35
36 // math functions
37 Acos = 0,
38 Acosh = 1,
39 Acospi = 2,
40 Asin = 3,
41 Asinh = 4,
42 Asinpi = 5,
43 Atan = 6,
44 Atan2 = 7,
45 Atanh = 8,
46 Atanpi = 9,
47 Atan2pi = 10,
48 Cbrt = 11,
49 Ceil = 12,
50 Copysign = 13,
51 Cos = 14,
52 Cosh = 15,
53 Cospi = 16,
54 Erfc = 17,
55 Erf = 18,
56 Exp = 19,
57 Exp2 = 20,
58 Exp10 = 21,
59 Expm1 = 22,
60 Fabs = 23,
61 Fdim = 24,
62 Floor = 25,
63 Fma = 26,
64 Fmax = 27,
65 Fmin = 28,
66 Fmod = 29,
67 Fract = 30,
68 Frexp = 31,
69 Hypot = 32,
70 Ilogb = 33,
71 Ldexp = 34,
72 Lgamma = 35,
73 Lgamma_r = 36,
74 Log = 37,
75 Log2 = 38,
76 Log10 = 39,
77 Log1p = 40,
78 Logb = 41,
79 Mad = 42,
80 Maxmag = 43,
81 Minmag = 44,
82 Modf = 45,
83 Nan = 46,
84 Nextafter = 47,
85 Pow = 48,
86 Pown = 49,
87 Powr = 50,
88 Remainder = 51,
89 Remquo = 52,
90 Rint = 53,
91 Rootn = 54,
92 Round = 55,
93 Rsqrt = 56,
94 Sin = 57,
95 Sincos = 58,
96 Sinh = 59,
97 Sinpi = 60,
98 Sqrt = 61,
99 Tan = 62,
100 Tanh = 63,
101 Tanpi = 64,
102 Tgamma = 65,
103 Trunc = 66,
104 Half_cos = 67,
105 Half_divide = 68,
106 Half_exp = 69,
107 Half_exp2 = 70,
108 Half_exp10 = 71,
109 Half_log = 72,
110 Half_log2 = 73,
111 Half_log10 = 74,
112 Half_powr = 75,
113 Half_recip = 76,
114 Half_rsqrt = 77,
115 Half_sin = 78,
116 Half_sqrt = 79,
117 Half_tan = 80,
118 Native_cos = 81,
119 Native_divide = 82,
120 Native_exp = 83,
121 Native_exp2 = 84,
122 Native_exp10 = 85,
123 Native_log = 86,
124 Native_log2 = 87,
125 Native_log10 = 88,
126 Native_powr = 89,
127 Native_recip = 90,
128 Native_rsqrt = 91,
129 Native_sin = 92,
130 Native_sqrt = 93,
131 Native_tan = 94,
132
133 // Common
134 FClamp = 95,
135 Degrees = 96,
136 FMax_common = 97,
137 FMin_common = 98,
138 Mix = 99,
139 Radians = 100,
140 Step = 101,
141 Smoothstep = 102,
142 Sign = 103,
143
144 // Geometrics
145 Cross = 104,
146 Distance = 105,
147 Length = 106,
148 Normalize = 107,
149 Fast_distance = 108,
150 Fast_length = 109,
151 Fast_normalize = 110,
152
153 // Integers
154 SAbs = 141,
155 SAbs_diff = 142,
156 SAdd_sat = 143,
157 UAdd_sat = 144,
158 SHadd = 145,
159 UHadd = 146,
160 SRhadd = 147,
161 URhadd = 148,
162 SClamp = 149,
163 UClamp = 150,
164 Clz = 151,
165 Ctz = 152,
166 SMad_hi = 153,
167 UMad_sat = 154,
168 SMad_sat = 155,
169 SMax = 156,
170 UMax = 157,
171 SMin = 158,
172 UMin = 159,
173 SMul_hi = 160,
174 Rotate = 161,
175 SSub_sat = 162,
176 USub_sat = 163,
177 U_Upsample = 164,
178 S_Upsample = 165,
179 Popcount = 166,
180 SMad24 = 167,
181 UMad24 = 168,
182 SMul24 = 169,
183 UMul24 = 170,
184
185 // Vector Loads/Stores
186 Vloadn = 171,
187 Vstoren = 172,
188 Vload_half = 173,
189 Vload_halfn = 174,
190 Vstore_half = 175,
191 Vstore_half_r = 176,
192 Vstore_halfn = 177,
193 Vstore_halfn_r = 178,
194 Vloada_halfn = 179,
195 Vstorea_halfn = 180,
196 Vstorea_halfn_r = 181,
197
198 // Vector Misc
199 Shuffle = 182,
200 Shuffle2 = 183,
201
202 //
203 Printf = 184,
204 Prefetch = 185,
205
206 // Relationals
207 Bitselect = 186,
208 Select = 187,
209
210 // pipes
211 Read_pipe = 188,
212 Write_pipe = 189,
213 Reserve_read_pipe = 190,
214 Reserve_write_pipe = 191,
215 Commit_read_pipe = 192,
216 Commit_write_pipe = 193,
217 Is_valid_reserve_id = 194,
218 Work_group_reserve_read_pipe = 195,
219 Work_group_reserve_write_pipe = 196,
220 Work_group_commit_read_pipe = 197,
221 Work_group_commit_write_pipe = 198,
222 Get_pipe_num_packets = 199,
223 Get_pipe_max_packets = 200,
224
225 // more integers
226 UAbs = 201,
227 UAbs_diff = 202,
228 UMul_hi = 203,
229 UMad_hi = 204,
230 };
231
232 } // end namespace OpenCL20
233 // clang-format on