diff options
author | Jason Ekstrand <[email protected]> | 2019-07-13 10:57:24 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-07-17 18:44:35 +0000 |
commit | 9fed031e4eb05a78888fb061a17eeb7346cc43d2 (patch) | |
tree | 20047f1734ccbbea4b034b7ae387399b9f38c639 /src/compiler/nir/nir_algebraic.py | |
parent | 68a4c796d52cfcb19830525d904d0ce87d154275 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_algebraic.py')
-rw-r--r-- | src/compiler/nir/nir_algebraic.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_algebraic.py b/src/compiler/nir/nir_algebraic.py index e79fa3cec5e..9b8af1a7470 100644 --- a/src/compiler/nir/nir_algebraic.py +++ b/src/compiler/nir/nir_algebraic.py @@ -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 |