+irdump_template = env.from_string(
+'''/* Warning: automatically generated code */
+{% for node in nodes %}
+{%- if node.outs %}
+static const pns_lookup_t {{node.name}}_lut[] = {
+ {%- for out in node.outs %}
+ { pn_{{node.name}}_{{out[0]}}, "{{out[0]}}" },
+ {%- endfor %}
+};
+{% endif -%}
+{%- endfor %}
+
+static const proj_lookup_t proj_lut[] = {
+ {%- for node in nodes -%}
+ {%- if node.outs %}
+ { iro_{{node.name}}, ARRAY_SIZE({{node.name}}_lut), {{node.name}}_lut },
+ {%- endif %}
+ {%- endfor %}
+};
+''')
+