Home | History | Annotate | Download | only in nir

Lines Matching defs:Opcode

28 # Class that represents all the information we have about the opcode
31 class Opcode(object):
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)
45 constant value of the opcode given the constant values of its inputs.
107 def opcode(name, output_size, output_type, input_sizes, input_types,
110 opcodes[name] = Opcode(name, output_size, output_type, input_sizes,
114 opcode(name, 0, out_type, [0], [in_type], "", const_expr)
117 opcode(name, 0, ty, [0], [ty], "", const_expr)
121 opcode(name, output_size, output_type, [input_size], [input_type], "",
344 opcode(name, 0, out_type, [0, 0], [in_type, in_type], alg_props, const_expr)
354 opcode(name, out_size, out_type, [src1_size, src2_size], [src1_type, src2_type],
369 opcode(name + "2", output_size, output_type,
372 opcode(name + "3", output_size, output_type,
375 opcode(name + "4", output_size, output_type,
412 # SPIR-V. The irem opcode implements the standard C/C++ signed "%"
413 # operation while the imod opcode implements the more mathematical
503 opcode("fdph", 1, tfloat, [3, 4], [tfloat, tfloat], "",
505 opcode("fdph_replicated", 4, tfloat, [3, 4], [tfloat, tfloat], "",
579 opcode("ldexp", 0, tfloat, [0, 0], [tfloat, tint32], "", """
603 opcode(name, 0, ty, [0, 0, 0], [ty, ty, ty], "", const_expr)
605 opcode(name, output_size, tuint,
621 opcode("bcsel", 0, tuint, [0, 0, 0],
640 opcode("ubfe", 0, tuint32,
654 opcode("ibfe", 0, tint32,
670 opcode("ubitfield_extract", 0, tuint32,
682 opcode("ibitfield_extract", 0, tint32,
705 opcode(name, output_size, tuint,
710 opcode("bitfield_insert", 0, tuint32, [0, 0, 0, 0],