110e230b6Smaya/* 210e230b6Smaya * Copyright (C) 2010 Intel Corporation 310e230b6Smaya * 410e230b6Smaya * Permission is hereby granted, free of charge, to any person obtaining a 510e230b6Smaya * copy of this software and associated documentation files (the "Software"), 610e230b6Smaya * to deal in the Software without restriction, including without limitation 710e230b6Smaya * the rights to use, copy, modify, merge, publish, distribute, sublicense, 810e230b6Smaya * and/or sell copies of the Software, and to permit persons to whom the 910e230b6Smaya * Software is furnished to do so, subject to the following conditions: 1010e230b6Smaya * 1110e230b6Smaya * The above copyright notice and this permission notice (including the next 1210e230b6Smaya * paragraph) shall be included in all copies or substantial portions of the 1310e230b6Smaya * Software. 1410e230b6Smaya * 1510e230b6Smaya * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1610e230b6Smaya * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1710e230b6Smaya * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 1810e230b6Smaya * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 1910e230b6Smaya * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 2010e230b6Smaya * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 2110e230b6Smaya * DEALINGS IN THE SOFTWARE. 2210e230b6Smaya */ 2310e230b6Smaya 2410e230b6Smayaconst char *const ir_expression_operation_strings[] = { 2510e230b6Smaya "~", 2610e230b6Smaya "!", 2710e230b6Smaya "neg", 2810e230b6Smaya "abs", 2910e230b6Smaya "sign", 3010e230b6Smaya "rcp", 3110e230b6Smaya "rsq", 3210e230b6Smaya "sqrt", 3310e230b6Smaya "exp", 3410e230b6Smaya "log", 3510e230b6Smaya "exp2", 3610e230b6Smaya "log2", 3710e230b6Smaya "f2i", 3810e230b6Smaya "f2u", 3910e230b6Smaya "i2f", 4010e230b6Smaya "f2b", 4110e230b6Smaya "b2f", 4296c5ddc4Srjs "b2f16", 4310e230b6Smaya "i2b", 4410e230b6Smaya "b2i", 4510e230b6Smaya "u2f", 4610e230b6Smaya "i2u", 4710e230b6Smaya "u2i", 4810e230b6Smaya "d2f", 4910e230b6Smaya "f2d", 5096c5ddc4Srjs "f2f16", 5196c5ddc4Srjs "f2fmp", 5296c5ddc4Srjs "f162f", 5396c5ddc4Srjs "i2i", 5496c5ddc4Srjs "i2imp", 5596c5ddc4Srjs "u2u", 5696c5ddc4Srjs "u2ump", 5710e230b6Smaya "d2i", 5810e230b6Smaya "i2d", 5910e230b6Smaya "d2u", 6010e230b6Smaya "u2d", 6110e230b6Smaya "d2b", 6296c5ddc4Srjs "f162b", 6310e230b6Smaya "bitcast_i2f", 6410e230b6Smaya "bitcast_f2i", 6510e230b6Smaya "bitcast_u2f", 6610e230b6Smaya "bitcast_f2u", 6710e230b6Smaya "bitcast_u642d", 6810e230b6Smaya "bitcast_i642d", 6910e230b6Smaya "bitcast_d2u64", 7010e230b6Smaya "bitcast_d2i64", 7110e230b6Smaya "i642i", 7210e230b6Smaya "u642i", 7310e230b6Smaya "i642u", 7410e230b6Smaya "u642u", 7510e230b6Smaya "i642b", 7610e230b6Smaya "i642f", 7710e230b6Smaya "u642f", 7810e230b6Smaya "i642d", 7910e230b6Smaya "u642d", 8010e230b6Smaya "i2i64", 8110e230b6Smaya "u2i64", 8210e230b6Smaya "b2i64", 8310e230b6Smaya "f2i64", 8410e230b6Smaya "d2i64", 8510e230b6Smaya "i2u64", 8610e230b6Smaya "u2u64", 8710e230b6Smaya "f2u64", 8810e230b6Smaya "d2u64", 8910e230b6Smaya "u642i64", 9010e230b6Smaya "i642u64", 9110e230b6Smaya "trunc", 9210e230b6Smaya "ceil", 9310e230b6Smaya "floor", 9410e230b6Smaya "fract", 9510e230b6Smaya "round_even", 9610e230b6Smaya "sin", 9710e230b6Smaya "cos", 9896c5ddc4Srjs "atan", 9910e230b6Smaya "dFdx", 10010e230b6Smaya "dFdxCoarse", 10110e230b6Smaya "dFdxFine", 10210e230b6Smaya "dFdy", 10310e230b6Smaya "dFdyCoarse", 10410e230b6Smaya "dFdyFine", 10510e230b6Smaya "packSnorm2x16", 10610e230b6Smaya "packSnorm4x8", 10710e230b6Smaya "packUnorm2x16", 10810e230b6Smaya "packUnorm4x8", 10910e230b6Smaya "packHalf2x16", 11010e230b6Smaya "unpackSnorm2x16", 11110e230b6Smaya "unpackSnorm4x8", 11210e230b6Smaya "unpackUnorm2x16", 11310e230b6Smaya "unpackUnorm4x8", 11410e230b6Smaya "unpackHalf2x16", 11510e230b6Smaya "bitfield_reverse", 11610e230b6Smaya "bit_count", 11710e230b6Smaya "find_msb", 11810e230b6Smaya "find_lsb", 11996c5ddc4Srjs "clz", 12010e230b6Smaya "sat", 12110e230b6Smaya "packDouble2x32", 12210e230b6Smaya "unpackDouble2x32", 12310e230b6Smaya "packSampler2x32", 12410e230b6Smaya "packImage2x32", 12510e230b6Smaya "unpackSampler2x32", 12610e230b6Smaya "unpackImage2x32", 12710e230b6Smaya "frexp_sig", 12810e230b6Smaya "frexp_exp", 12910e230b6Smaya "subroutine_to_int", 13010e230b6Smaya "interpolate_at_centroid", 13110e230b6Smaya "get_buffer_size", 13210e230b6Smaya "ssbo_unsized_array_length", 13396c5ddc4Srjs "implicitly_sized_array_length", 13410e230b6Smaya "packInt2x32", 13510e230b6Smaya "packUint2x32", 13610e230b6Smaya "unpackInt2x32", 13710e230b6Smaya "unpackUint2x32", 13810e230b6Smaya "+", 13910e230b6Smaya "-", 14096c5ddc4Srjs "add_sat", 14196c5ddc4Srjs "sub_sat", 14296c5ddc4Srjs "abs_sub", 14396c5ddc4Srjs "average", 14496c5ddc4Srjs "average_rounded", 14596c5ddc4Srjs "*", 14610e230b6Smaya "*", 14710e230b6Smaya "imul_high", 14810e230b6Smaya "/", 14910e230b6Smaya "carry", 15010e230b6Smaya "borrow", 15110e230b6Smaya "%", 15210e230b6Smaya "<", 15310e230b6Smaya ">=", 15410e230b6Smaya "==", 15510e230b6Smaya "!=", 15610e230b6Smaya "all_equal", 15710e230b6Smaya "any_nequal", 15810e230b6Smaya "<<", 15910e230b6Smaya ">>", 16010e230b6Smaya "&", 16110e230b6Smaya "^", 16210e230b6Smaya "|", 16310e230b6Smaya "&&", 16410e230b6Smaya "^^", 16510e230b6Smaya "||", 16610e230b6Smaya "dot", 16710e230b6Smaya "min", 16810e230b6Smaya "max", 16910e230b6Smaya "pow", 17010e230b6Smaya "ubo_load", 17110e230b6Smaya "ldexp", 17210e230b6Smaya "vector_extract", 17310e230b6Smaya "interpolate_at_offset", 17410e230b6Smaya "interpolate_at_sample", 17596c5ddc4Srjs "atan2", 17610e230b6Smaya "fma", 17710e230b6Smaya "lrp", 17810e230b6Smaya "csel", 17910e230b6Smaya "bitfield_extract", 18010e230b6Smaya "vector_insert", 18110e230b6Smaya "bitfield_insert", 18210e230b6Smaya "vector", 18310e230b6Smaya}; 18410e230b6Smaya 18510e230b6Smayaconst char *const ir_expression_operation_enum_strings[] = { 18610e230b6Smaya "bit_not", 18710e230b6Smaya "logic_not", 18810e230b6Smaya "neg", 18910e230b6Smaya "abs", 19010e230b6Smaya "sign", 19110e230b6Smaya "rcp", 19210e230b6Smaya "rsq", 19310e230b6Smaya "sqrt", 19410e230b6Smaya "exp", 19510e230b6Smaya "log", 19610e230b6Smaya "exp2", 19710e230b6Smaya "log2", 19810e230b6Smaya "f2i", 19910e230b6Smaya "f2u", 20010e230b6Smaya "i2f", 20110e230b6Smaya "f2b", 20210e230b6Smaya "b2f", 20396c5ddc4Srjs "b2f16", 20410e230b6Smaya "i2b", 20510e230b6Smaya "b2i", 20610e230b6Smaya "u2f", 20710e230b6Smaya "i2u", 20810e230b6Smaya "u2i", 20910e230b6Smaya "d2f", 21010e230b6Smaya "f2d", 21196c5ddc4Srjs "f2f16", 21296c5ddc4Srjs "f2fmp", 21396c5ddc4Srjs "f162f", 21496c5ddc4Srjs "i2i", 21596c5ddc4Srjs "i2imp", 21696c5ddc4Srjs "u2u", 21796c5ddc4Srjs "u2ump", 21810e230b6Smaya "d2i", 21910e230b6Smaya "i2d", 22010e230b6Smaya "d2u", 22110e230b6Smaya "u2d", 22210e230b6Smaya "d2b", 22396c5ddc4Srjs "f162b", 22410e230b6Smaya "bitcast_i2f", 22510e230b6Smaya "bitcast_f2i", 22610e230b6Smaya "bitcast_u2f", 22710e230b6Smaya "bitcast_f2u", 22810e230b6Smaya "bitcast_u642d", 22910e230b6Smaya "bitcast_i642d", 23010e230b6Smaya "bitcast_d2u64", 23110e230b6Smaya "bitcast_d2i64", 23210e230b6Smaya "i642i", 23310e230b6Smaya "u642i", 23410e230b6Smaya "i642u", 23510e230b6Smaya "u642u", 23610e230b6Smaya "i642b", 23710e230b6Smaya "i642f", 23810e230b6Smaya "u642f", 23910e230b6Smaya "i642d", 24010e230b6Smaya "u642d", 24110e230b6Smaya "i2i64", 24210e230b6Smaya "u2i64", 24310e230b6Smaya "b2i64", 24410e230b6Smaya "f2i64", 24510e230b6Smaya "d2i64", 24610e230b6Smaya "i2u64", 24710e230b6Smaya "u2u64", 24810e230b6Smaya "f2u64", 24910e230b6Smaya "d2u64", 25010e230b6Smaya "u642i64", 25110e230b6Smaya "i642u64", 25210e230b6Smaya "trunc", 25310e230b6Smaya "ceil", 25410e230b6Smaya "floor", 25510e230b6Smaya "fract", 25610e230b6Smaya "round_even", 25710e230b6Smaya "sin", 25810e230b6Smaya "cos", 25996c5ddc4Srjs "atan", 26010e230b6Smaya "dFdx", 26110e230b6Smaya "dFdx_coarse", 26210e230b6Smaya "dFdx_fine", 26310e230b6Smaya "dFdy", 26410e230b6Smaya "dFdy_coarse", 26510e230b6Smaya "dFdy_fine", 26610e230b6Smaya "pack_snorm_2x16", 26710e230b6Smaya "pack_snorm_4x8", 26810e230b6Smaya "pack_unorm_2x16", 26910e230b6Smaya "pack_unorm_4x8", 27010e230b6Smaya "pack_half_2x16", 27110e230b6Smaya "unpack_snorm_2x16", 27210e230b6Smaya "unpack_snorm_4x8", 27310e230b6Smaya "unpack_unorm_2x16", 27410e230b6Smaya "unpack_unorm_4x8", 27510e230b6Smaya "unpack_half_2x16", 27610e230b6Smaya "bitfield_reverse", 27710e230b6Smaya "bit_count", 27810e230b6Smaya "find_msb", 27910e230b6Smaya "find_lsb", 28096c5ddc4Srjs "clz", 28110e230b6Smaya "saturate", 28210e230b6Smaya "pack_double_2x32", 28310e230b6Smaya "unpack_double_2x32", 28410e230b6Smaya "pack_sampler_2x32", 28510e230b6Smaya "pack_image_2x32", 28610e230b6Smaya "unpack_sampler_2x32", 28710e230b6Smaya "unpack_image_2x32", 28810e230b6Smaya "frexp_sig", 28910e230b6Smaya "frexp_exp", 29010e230b6Smaya "subroutine_to_int", 29110e230b6Smaya "interpolate_at_centroid", 29210e230b6Smaya "get_buffer_size", 29310e230b6Smaya "ssbo_unsized_array_length", 29496c5ddc4Srjs "implicitly_sized_array_length", 29510e230b6Smaya "pack_int_2x32", 29610e230b6Smaya "pack_uint_2x32", 29710e230b6Smaya "unpack_int_2x32", 29810e230b6Smaya "unpack_uint_2x32", 29910e230b6Smaya "add", 30010e230b6Smaya "sub", 30196c5ddc4Srjs "add_sat", 30296c5ddc4Srjs "sub_sat", 30396c5ddc4Srjs "abs_sub", 30496c5ddc4Srjs "avg", 30596c5ddc4Srjs "avg_round", 30610e230b6Smaya "mul", 30796c5ddc4Srjs "mul_32x16", 30810e230b6Smaya "imul_high", 30910e230b6Smaya "div", 31010e230b6Smaya "carry", 31110e230b6Smaya "borrow", 31210e230b6Smaya "mod", 31310e230b6Smaya "less", 31410e230b6Smaya "gequal", 31510e230b6Smaya "equal", 31610e230b6Smaya "nequal", 31710e230b6Smaya "all_equal", 31810e230b6Smaya "any_nequal", 31910e230b6Smaya "lshift", 32010e230b6Smaya "rshift", 32110e230b6Smaya "bit_and", 32210e230b6Smaya "bit_xor", 32310e230b6Smaya "bit_or", 32410e230b6Smaya "logic_and", 32510e230b6Smaya "logic_xor", 32610e230b6Smaya "logic_or", 32710e230b6Smaya "dot", 32810e230b6Smaya "min", 32910e230b6Smaya "max", 33010e230b6Smaya "pow", 33110e230b6Smaya "ubo_load", 33210e230b6Smaya "ldexp", 33310e230b6Smaya "vector_extract", 33410e230b6Smaya "interpolate_at_offset", 33510e230b6Smaya "interpolate_at_sample", 33696c5ddc4Srjs "atan2", 33710e230b6Smaya "fma", 33810e230b6Smaya "lrp", 33910e230b6Smaya "csel", 34010e230b6Smaya "bitfield_extract", 34110e230b6Smaya "vector_insert", 34210e230b6Smaya "bitfield_insert", 34310e230b6Smaya "vector", 34410e230b6Smaya}; 345