• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2010 Intel Corporation
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a
5  * copy of this software and associated documentation files (the "Software"),
6  * to deal in the Software without restriction, including without limitation
7  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8  * and/or sell copies of the Software, and to permit persons to whom the
9  * Software is furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice (including the next
12  * paragraph) shall be included in all copies or substantial portions of the
13  * Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
18  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21  * DEALINGS IN THE SOFTWARE.
22  */
23 
24 const char *const ir_expression_operation_strings[] = {
25    "~",
26    "!",
27    "neg",
28    "abs",
29    "sign",
30    "rcp",
31    "rsq",
32    "sqrt",
33    "exp",
34    "log",
35    "exp2",
36    "log2",
37    "f2i",
38    "f2u",
39    "i2f",
40    "f2b",
41    "b2f",
42    "i2b",
43    "b2i",
44    "u2f",
45    "i2u",
46    "u2i",
47    "d2f",
48    "f2d",
49    "d2i",
50    "i2d",
51    "d2u",
52    "u2d",
53    "d2b",
54    "bitcast_i2f",
55    "bitcast_f2i",
56    "bitcast_u2f",
57    "bitcast_f2u",
58    "trunc",
59    "ceil",
60    "floor",
61    "fract",
62    "round_even",
63    "sin",
64    "cos",
65    "dFdx",
66    "dFdxCoarse",
67    "dFdxFine",
68    "dFdy",
69    "dFdyCoarse",
70    "dFdyFine",
71    "packSnorm2x16",
72    "packSnorm4x8",
73    "packUnorm2x16",
74    "packUnorm4x8",
75    "packHalf2x16",
76    "unpackSnorm2x16",
77    "unpackSnorm4x8",
78    "unpackUnorm2x16",
79    "unpackUnorm4x8",
80    "unpackHalf2x16",
81    "bitfield_reverse",
82    "bit_count",
83    "find_msb",
84    "find_lsb",
85    "sat",
86    "packDouble2x32",
87    "unpackDouble2x32",
88    "frexp_sig",
89    "frexp_exp",
90    "noise",
91    "subroutine_to_int",
92    "interpolate_at_centroid",
93    "get_buffer_size",
94    "ssbo_unsized_array_length",
95    "vote_any",
96    "vote_all",
97    "vote_eq",
98    "+",
99    "-",
100    "*",
101    "imul_high",
102    "/",
103    "carry",
104    "borrow",
105    "%",
106    "<",
107    ">",
108    "<=",
109    ">=",
110    "==",
111    "!=",
112    "all_equal",
113    "any_nequal",
114    "<<",
115    ">>",
116    "&",
117    "^",
118    "|",
119    "&&",
120    "^^",
121    "||",
122    "dot",
123    "min",
124    "max",
125    "pow",
126    "ubo_load",
127    "ldexp",
128    "vector_extract",
129    "interpolate_at_offset",
130    "interpolate_at_sample",
131    "fma",
132    "lrp",
133    "csel",
134    "bitfield_extract",
135    "vector_insert",
136    "bitfield_insert",
137    "vector",
138 };
139 
140 const char *const ir_expression_operation_enum_strings[] = {
141    "bit_not",
142    "logic_not",
143    "neg",
144    "abs",
145    "sign",
146    "rcp",
147    "rsq",
148    "sqrt",
149    "exp",
150    "log",
151    "exp2",
152    "log2",
153    "f2i",
154    "f2u",
155    "i2f",
156    "f2b",
157    "b2f",
158    "i2b",
159    "b2i",
160    "u2f",
161    "i2u",
162    "u2i",
163    "d2f",
164    "f2d",
165    "d2i",
166    "i2d",
167    "d2u",
168    "u2d",
169    "d2b",
170    "bitcast_i2f",
171    "bitcast_f2i",
172    "bitcast_u2f",
173    "bitcast_f2u",
174    "trunc",
175    "ceil",
176    "floor",
177    "fract",
178    "round_even",
179    "sin",
180    "cos",
181    "dFdx",
182    "dFdx_coarse",
183    "dFdx_fine",
184    "dFdy",
185    "dFdy_coarse",
186    "dFdy_fine",
187    "pack_snorm_2x16",
188    "pack_snorm_4x8",
189    "pack_unorm_2x16",
190    "pack_unorm_4x8",
191    "pack_half_2x16",
192    "unpack_snorm_2x16",
193    "unpack_snorm_4x8",
194    "unpack_unorm_2x16",
195    "unpack_unorm_4x8",
196    "unpack_half_2x16",
197    "bitfield_reverse",
198    "bit_count",
199    "find_msb",
200    "find_lsb",
201    "saturate",
202    "pack_double_2x32",
203    "unpack_double_2x32",
204    "frexp_sig",
205    "frexp_exp",
206    "noise",
207    "subroutine_to_int",
208    "interpolate_at_centroid",
209    "get_buffer_size",
210    "ssbo_unsized_array_length",
211    "vote_any",
212    "vote_all",
213    "vote_eq",
214    "add",
215    "sub",
216    "mul",
217    "imul_high",
218    "div",
219    "carry",
220    "borrow",
221    "mod",
222    "less",
223    "greater",
224    "lequal",
225    "gequal",
226    "equal",
227    "nequal",
228    "all_equal",
229    "any_nequal",
230    "lshift",
231    "rshift",
232    "bit_and",
233    "bit_xor",
234    "bit_or",
235    "logic_and",
236    "logic_xor",
237    "logic_or",
238    "dot",
239    "min",
240    "max",
241    "pow",
242    "ubo_load",
243    "ldexp",
244    "vector_extract",
245    "interpolate_at_offset",
246    "interpolate_at_sample",
247    "fma",
248    "lrp",
249    "csel",
250    "bitfield_extract",
251    "vector_insert",
252    "bitfield_insert",
253    "vector",
254 };
255