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