glsl: Generate strings that are the enum names without the ir_*op_ prefix
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 15 Sep 2016 18:26:28 +0000 (11:26 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 10 Nov 2016 22:30:49 +0000 (14:30 -0800)
commit984f16bbd729646a27a474cf351e11445b8d0b8b
tree02d58e330662087387c445f6ad9c721b2b553fc9
parentd0028b2e1c43392bb476416a1af2097ab17afe7c
glsl: Generate strings that are the enum names without the ir_*op_ prefix

For many expressions, this is different from the printable name.  The
printable name for ir_binop_add is "+", but we want "add".  This is
needed for ir_builder_print_visitor.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/compiler/glsl/ir.h
src/compiler/glsl/ir_expression_operation.py