| 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 |
"b2f16", |
| 43 |
"i2b", |
| 44 |
"b2i", |
| 45 |
"u2f", |
| 46 |
"i2u", |
| 47 |
"u2i", |
| 48 |
"d2f", |
| 49 |
"f2d", |
| 50 |
"f2f16", |
| 51 |
"f2fmp", |
| 52 |
"f162f", |
| 53 |
"d2i", |
| 54 |
"i2d", |
| 55 |
"d2u", |
| 56 |
"u2d", |
| 57 |
"d2b", |
| 58 |
"f162b", |
| 59 |
"bitcast_i2f", |
| 60 |
"bitcast_f2i", |
| 61 |
"bitcast_u2f", |
| 62 |
"bitcast_f2u", |
| 63 |
"bitcast_u642d", |
| 64 |
"bitcast_i642d", |
| 65 |
"bitcast_d2u64", |
| 66 |
"bitcast_d2i64", |
| 67 |
"i642i", |
| 68 |
"u642i", |
| 69 |
"i642u", |
| 70 |
"u642u", |
| 71 |
"i642b", |
| 72 |
"i642f", |
| 73 |
"u642f", |
| 74 |
"i642d", |
| 75 |
"u642d", |
| 76 |
"i2i64", |
| 77 |
"u2i64", |
| 78 |
"b2i64", |
| 79 |
"f2i64", |
| 80 |
"d2i64", |
| 81 |
"i2u64", |
| 82 |
"u2u64", |
| 83 |
"f2u64", |
| 84 |
"d2u64", |
| 85 |
"u642i64", |
| 86 |
"i642u64", |
| 87 |
"trunc", |
| 88 |
"ceil", |
| 89 |
"floor", |
| 90 |
"fract", |
| 91 |
"round_even", |
| 92 |
"sin", |
| 93 |
"cos", |
| 94 |
"atan", |
| 95 |
"dFdx", |
| 96 |
"dFdxCoarse", |
| 97 |
"dFdxFine", |
| 98 |
"dFdy", |
| 99 |
"dFdyCoarse", |
| 100 |
"dFdyFine", |
| 101 |
"packSnorm2x16", |
| 102 |
"packSnorm4x8", |
| 103 |
"packUnorm2x16", |
| 104 |
"packUnorm4x8", |
| 105 |
"packHalf2x16", |
| 106 |
"unpackSnorm2x16", |
| 107 |
"unpackSnorm4x8", |
| 108 |
"unpackUnorm2x16", |
| 109 |
"unpackUnorm4x8", |
| 110 |
"unpackHalf2x16", |
| 111 |
"bitfield_reverse", |
| 112 |
"bit_count", |
| 113 |
"find_msb", |
| 114 |
"find_lsb", |
| 115 |
"clz", |
| 116 |
"sat", |
| 117 |
"packDouble2x32", |
| 118 |
"unpackDouble2x32", |
| 119 |
"packSampler2x32", |
| 120 |
"packImage2x32", |
| 121 |
"unpackSampler2x32", |
| 122 |
"unpackImage2x32", |
| 123 |
"frexp_sig", |
| 124 |
"frexp_exp", |
| 125 |
"subroutine_to_int", |
| 126 |
"interpolate_at_centroid", |
| 127 |
"get_buffer_size", |
| 128 |
"ssbo_unsized_array_length", |
| 129 |
"packInt2x32", |
| 130 |
"packUint2x32", |
| 131 |
"unpackInt2x32", |
| 132 |
"unpackUint2x32", |
| 133 |
"+", |
| 134 |
"-", |
| 135 |
"add_sat", |
| 136 |
"sub_sat", |
| 137 |
"abs_sub", |
| 138 |
"average", |
| 139 |
"average_rounded", |
| 140 |
"*", |
| 141 |
"*", |
| 142 |
"imul_high", |
| 143 |
"/", |
| 144 |
"carry", |
| 145 |
"borrow", |
| 146 |
"%", |
| 147 |
"<", |
| 148 |
">=", |
| 149 |
"==", |
| 150 |
"!=", |
| 151 |
"all_equal", |
| 152 |
"any_nequal", |
| 153 |
"<<", |
| 154 |
">>", |
| 155 |
"&", |
| 156 |
"^", |
| 157 |
"|", |
| 158 |
"&&", |
| 159 |
"^^", |
| 160 |
"||", |
| 161 |
"dot", |
| 162 |
"min", |
| 163 |
"max", |
| 164 |
"pow", |
| 165 |
"ubo_load", |
| 166 |
"ldexp", |
| 167 |
"vector_extract", |
| 168 |
"interpolate_at_offset", |
| 169 |
"interpolate_at_sample", |
| 170 |
"atan2", |
| 171 |
"fma", |
| 172 |
"lrp", |
| 173 |
"csel", |
| 174 |
"bitfield_extract", |
| 175 |
"vector_insert", |
| 176 |
"bitfield_insert", |
| 177 |
"vector", |
| 178 |
}; |
| 179 |
|
| 180 |
const char *const ir_expression_operation_enum_strings[] = { |
| 181 |
"bit_not", |
| 182 |
"logic_not", |
| 183 |
"neg", |
| 184 |
"abs", |
| 185 |
"sign", |
| 186 |
"rcp", |
| 187 |
"rsq", |
| 188 |
"sqrt", |
| 189 |
"exp", |
| 190 |
"log", |
| 191 |
"exp2", |
| 192 |
"log2", |
| 193 |
"f2i", |
| 194 |
"f2u", |
| 195 |
"i2f", |
| 196 |
"f2b", |
| 197 |
"b2f", |
| 198 |
"b2f16", |
| 199 |
"i2b", |
| 200 |
"b2i", |
| 201 |
"u2f", |
| 202 |
"i2u", |
| 203 |
"u2i", |
| 204 |
"d2f", |
| 205 |
"f2d", |
| 206 |
"f2f16", |
| 207 |
"f2fmp", |
| 208 |
"f162f", |
| 209 |
"d2i", |
| 210 |
"i2d", |
| 211 |
"d2u", |
| 212 |
"u2d", |
| 213 |
"d2b", |
| 214 |
"f162b", |
| 215 |
"bitcast_i2f", |
| 216 |
"bitcast_f2i", |
| 217 |
"bitcast_u2f", |
| 218 |
"bitcast_f2u", |
| 219 |
"bitcast_u642d", |
| 220 |
"bitcast_i642d", |
| 221 |
"bitcast_d2u64", |
| 222 |
"bitcast_d2i64", |
| 223 |
"i642i", |
| 224 |
"u642i", |
| 225 |
"i642u", |
| 226 |
"u642u", |
| 227 |
"i642b", |
| 228 |
"i642f", |
| 229 |
"u642f", |
| 230 |
"i642d", |
| 231 |
"u642d", |
| 232 |
"i2i64", |
| 233 |
"u2i64", |
| 234 |
"b2i64", |
| 235 |
"f2i64", |
| 236 |
"d2i64", |
| 237 |
"i2u64", |
| 238 |
"u2u64", |
| 239 |
"f2u64", |
| 240 |
"d2u64", |
| 241 |
"u642i64", |
| 242 |
"i642u64", |
| 243 |
"trunc", |
| 244 |
"ceil", |
| 245 |
"floor", |
| 246 |
"fract", |
| 247 |
"round_even", |
| 248 |
"sin", |
| 249 |
"cos", |
| 250 |
"atan", |
| 251 |
"dFdx", |
| 252 |
"dFdx_coarse", |
| 253 |
"dFdx_fine", |
| 254 |
"dFdy", |
| 255 |
"dFdy_coarse", |
| 256 |
"dFdy_fine", |
| 257 |
"pack_snorm_2x16", |
| 258 |
"pack_snorm_4x8", |
| 259 |
"pack_unorm_2x16", |
| 260 |
"pack_unorm_4x8", |
| 261 |
"pack_half_2x16", |
| 262 |
"unpack_snorm_2x16", |
| 263 |
"unpack_snorm_4x8", |
| 264 |
"unpack_unorm_2x16", |
| 265 |
"unpack_unorm_4x8", |
| 266 |
"unpack_half_2x16", |
| 267 |
"bitfield_reverse", |
| 268 |
"bit_count", |
| 269 |
"find_msb", |
| 270 |
"find_lsb", |
| 271 |
"clz", |
| 272 |
"saturate", |
| 273 |
"pack_double_2x32", |
| 274 |
"unpack_double_2x32", |
| 275 |
"pack_sampler_2x32", |
| 276 |
"pack_image_2x32", |
| 277 |
"unpack_sampler_2x32", |
| 278 |
"unpack_image_2x32", |
| 279 |
"frexp_sig", |
| 280 |
"frexp_exp", |
| 281 |
"subroutine_to_int", |
| 282 |
"interpolate_at_centroid", |
| 283 |
"get_buffer_size", |
| 284 |
"ssbo_unsized_array_length", |
| 285 |
"pack_int_2x32", |
| 286 |
"pack_uint_2x32", |
| 287 |
"unpack_int_2x32", |
| 288 |
"unpack_uint_2x32", |
| 289 |
"add", |
| 290 |
"sub", |
| 291 |
"add_sat", |
| 292 |
"sub_sat", |
| 293 |
"abs_sub", |
| 294 |
"avg", |
| 295 |
"avg_round", |
| 296 |
"mul", |
| 297 |
"mul_32x16", |
| 298 |
"imul_high", |
| 299 |
"div", |
| 300 |
"carry", |
| 301 |
"borrow", |
| 302 |
"mod", |
| 303 |
"less", |
| 304 |
"gequal", |
| 305 |
"equal", |
| 306 |
"nequal", |
| 307 |
"all_equal", |
| 308 |
"any_nequal", |
| 309 |
"lshift", |
| 310 |
"rshift", |
| 311 |
"bit_and", |
| 312 |
"bit_xor", |
| 313 |
"bit_or", |
| 314 |
"logic_and", |
| 315 |
"logic_xor", |
| 316 |
"logic_or", |
| 317 |
"dot", |
| 318 |
"min", |
| 319 |
"max", |
| 320 |
"pow", |
| 321 |
"ubo_load", |
| 322 |
"ldexp", |
| 323 |
"vector_extract", |
| 324 |
"interpolate_at_offset", |
| 325 |
"interpolate_at_sample", |
| 326 |
"atan2", |
| 327 |
"fma", |
| 328 |
"lrp", |
| 329 |
"csel", |
| 330 |
"bitfield_extract", |
| 331 |
"vector_insert", |
| 332 |
"bitfield_insert", |
| 333 |
"vector", |
| 334 |
}; |