diff options
author | Ian Romanick <[email protected]> | 2016-09-15 11:26:28 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2016-11-10 14:30:49 -0800 |
commit | 984f16bbd729646a27a474cf351e11445b8d0b8b (patch) | |
tree | 02d58e330662087387c445f6ad9c721b2b553fc9 /src/compiler/glsl/ir.h | |
parent | d0028b2e1c43392bb476416a1af2097ab17afe7c (diff) |
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 <[email protected]>
Reviewed-by: Iago Toral Quiroga <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ir.h')
-rw-r--r-- | src/compiler/glsl/ir.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/glsl/ir.h b/src/compiler/glsl/ir.h index 433ba193801..24f510ea990 100644 --- a/src/compiler/glsl/ir.h +++ b/src/compiler/glsl/ir.h @@ -1471,6 +1471,7 @@ public: #include "ir_expression_operation.h" extern const char *const ir_expression_operation_strings[ir_last_opcode + 1]; +extern const char *const ir_expression_operation_enum_strings[ir_last_opcode + 1]; class ir_expression : public ir_rvalue { public: |