Module: Mesa Branch: master Commit: 9fed031e4eb05a78888fb061a17eeb7346cc43d2 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9fed031e4eb05a78888fb061a17eeb7346cc43d2
Author: Jason Ekstrand <[email protected]> Date: Sat Jul 13 10:57:24 2019 -0500 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]> --- src/compiler/nir/nir_algebraic.py | 7 +++++++ 1 file changed, 7 insertions(+) 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 _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
