X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=scripts%2Fgen_ir.py;h=98219f01c8e8a99a8e129fb1f8d2c27c87ed3f23;hb=0f234e2d94155d13c0e4727871125beda0eaa66d;hp=498e2eb258391e9141ead8ba4fd1e2d77c395d73;hpb=e1397b01aceb38b6bb62c319007146af3b922f39;p=libfirm diff --git a/scripts/gen_ir.py b/scripts/gen_ir.py index 498e2eb25..98219f01c 100755 --- a/scripts/gen_ir.py +++ b/scripts/gen_ir.py @@ -303,6 +303,19 @@ ir_node *new_{{node.constrname}}({{node|argdecls(True, True)}}) } ''') +# not used - as we have the pn_ declarations in libfirm/irnode.h where they +# contain informative comments +# {% for node in nodes %} +# {% if node.outs %} +# typedef enum { +# {%- for out in node.outs %} +# pn_{{node.name}}_{{out}}, +# {%- endfor %} +# pn_{{node.name}}_max +# } pn_{{node.name}}; +# {% endif %} +# {% endfor %} + irnode_h_template = env.from_string(''' /* Warning: automatically generated code */ @@ -351,6 +364,7 @@ void finish_op(void) free_ir_op(op_{{node.name}}); op_{{node.name}} = NULL; {%- endfor %} } + ''') #############################