glsl: Add a C++ code generator that uses ir_builder to rebuild a program
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 15 Sep 2016 18:36:16 +0000 (11:36 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 10 Nov 2016 22:30:49 +0000 (14:30 -0800)
commit191d9a5195c0d4871e264a73781dbf8b4368fcb7
tree0c77d579827fd101e96e43435fafbb876e160007
parent984f16bbd729646a27a474cf351e11445b8d0b8b
glsl: Add a C++ code generator that uses ir_builder to rebuild a program

This is only in libstandalone currently because it will only be used in
the stand-alone compiler.

v2: Change the signature of the generated function.  The ir_factory is
created in the generator, and an availability predicate is taken as a
parameter.

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/Makefile.sources
src/compiler/glsl/ir_builder_print_visitor.cpp [new file with mode: 0644]
src/compiler/glsl/ir_builder_print_visitor.h [new file with mode: 0644]