nir/algebraic: Print out the list of transforms in the C file

This helps greatly when debugging algebraic transform generators because
you can now actually see the output and verify that your transforms are
getting generated.

Acked-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Jason Ekstrand
2019-07-13 10:57:24 -05:00
parent 68a4c796d5
commit 9fed031e4e

View File

@@ -1034,6 +1034,13 @@ _algebraic_pass_template = mako.template.Template("""
#include "nir_search.h"
#include "nir_search_helpers.h"
/* What follows is NIR algebraic transform code for the following ${len(xforms)}
* transforms:
% for xform in xforms:
* ${xform.search} => ${xform.replace}
% endfor
*/
#ifndef NIR_OPT_ALGEBRAIC_STRUCT_DEFS
#define NIR_OPT_ALGEBRAIC_STRUCT_DEFS