Lines Matching defs:opcode

28 # Class that represents all the information we have about the opcode
32 """Class that represents all the information we have about the opcode
39 - name is the name of the opcode (prepend nir_op_ for the enum name)
42 - is_conversion is true if this opcode represents a type conversion
46 constant value of the opcode given the constant values of its inputs.
154 def opcode(name, output_size, output_type, input_sizes, input_types,
162 opcode(name, 0, out_type, [0], [in_type], False, "", const_expr)
165 opcode(name, 0, ty, [0], [ty], False, "", const_expr)
169 opcode(name, output_size, output_type, [input_size], [input_type],
192 opcode(name, 0, out_type, [0], [in_type], True, "", const_expr)
285 # Special opcode that is the same as f2f16, i2i16, u2u16 except that it is safe
563 opcode(name, 0, out_type, [0, 0], [in_type, in_type],
589 opcode(name, out_size, out_type, [src1_size, src2_size], [src1_type, src2_type],
606 opcode(name + str(size) + suffix, output_size, output_type,
609 opcode(name + "3" + suffix, output_size, output_type,
612 opcode(name + "5" + suffix, output_size, output_type,
802 # SPIR-V. The irem opcode implements the standard C/C++ signed "%"
803 # operation while the imod opcode implements the more mathematical
862 opcode("ishl", 0, tint, [0, 0], [tint, tuint32], False, "",
864 opcode("ishr", 0, tint, [0, 0], [tint, tuint32], False, "",
866 opcode("ushr", 0, tuint, [0, 0], [tuint, tuint32], False, "",
869 opcode("urol", 0, tuint, [0, 0], [tuint, tuint32], False, "", """
874 opcode("uror", 0, tuint, [0, 0], [tuint, tuint32], False, "", """
898 opcode("fdph", 1, tfloat, [3, 4], [tfloat, tfloat], False, "",
900 opcode("fdph_replicated", 0, tfloat, [3, 4], [tfloat, tfloat], False, "",
921 opcode("pack_32_4x8_split", 0, tuint32, [0, 0, 0, 0], [tuint8, tuint8, tuint8, tuint8],
934 opcode("ldexp", 0, tfloat, [0, 0], [tfloat, tint32], False, "", """
962 opcode(name, 0, ty, [0, 0, 0], [ty, ty, ty], False, alg_props, const_expr)
964 opcode(name, output_size, tuint,
1010 opcode("bcsel", 0, tuint, [0, 0, 0],
1012 opcode("b8csel", 0, tuint, [0, 0, 0],
1014 opcode("b16csel", 0, tuint, [0, 0, 0],
1016 opcode("b32csel", 0, tuint, [0, 0, 0],
1044 opcode("ubfe", 0, tuint32,
1057 opcode("ibfe", 0, tint32,
1072 opcode("ubitfield_extract", 0, tuint32,
1084 opcode("ibitfield_extract", 0, tint32,
1130 opcode(name, output_size, tuint,
1135 opcode("bitfield_insert", 0, tuint32, [0, 0, 0, 0],
1156 opcode("vec5", 5, tuint,
1166 opcode("vec8", 8, tuint,
1179 opcode("vec16", 16, tuint,
1215 opcode("imadsh_mix16", 0, tint32,
1364 opcode("sdot_4x8_iadd", 0, tint32, [0, 0, 0], [tuint32, tuint32, tint32],
1379 opcode("udot_4x8_uadd", 0, tuint32, [0, 0, 0], [tuint32, tuint32, tuint32],
1399 # and source 1 mean that this opcode is not 2-source commutative
1400 opcode("sudot_4x8_iadd", 0, tint32, [0, 0, 0], [tuint32, tuint32, tint32],
1415 opcode("sdot_4x8_iadd_sat", 0, tint32, [0, 0, 0], [tuint32, tuint32, tint32],
1432 opcode("udot_4x8_uadd_sat", 0, tint32, [0, 0, 0], [tuint32, tuint32, tint32],
1451 # and source 1 mean that this opcode is not 2-source commutative
1452 opcode("sudot_4x8_iadd_sat", 0, tint32, [0, 0, 0], [tuint32, tuint32, tint32],
1471 opcode("sdot_2x16_iadd", 0, tint32, [0, 0, 0], [tuint32, tuint32, tint32],
1482 opcode("udot_2x16_uadd", 0, tuint32, [0, 0, 0], [tuint32, tuint32, tuint32],
1493 opcode("sdot_2x16_iadd_sat", 0, tint32, [0, 0, 0], [tuint32, tuint32, tint32],
1506 opcode("udot_2x16_uadd_sat", 0, tint32, [0, 0, 0], [tuint32, tuint32, tint32],