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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user