-typedef struct _TEMPLATE_emit_env_t {
- be_emit_env_t *emit;
- const arch_env_t *arch_env;
- const TEMPLATE_code_gen_t *cg;
- TEMPLATE_isa_t *isa;
-} TEMPLATE_emit_env_t;
-
-void TEMPLATE_emit_source_register(TEMPLATE_emit_env_t *env, const ir_node *node, int pos);
-void TEMPLATE_emit_dest_register(TEMPLATE_emit_env_t *env, const ir_node *node, int pos);
-void TEMPLATE_emit_immediate(TEMPLATE_emit_env_t *env, const ir_node *node);
-
-int get_TEMPLATE_reg_nr(ir_node *irn, int posi, int in_out);
-const char *get_TEMPLATE_in_reg_name(ir_node *irn, int pos);
+/**
+ * emit assembler instructions with format string. Automatically indents
+ * instructions and adds debug comments at the end (in verbose-asm mode).
+ * Format specifiers:
+ *
+ * fmt parameter output
+ * ---- ---------------------- ---------------------------------------------
+ * %% %
+ * %r const arch_register_t* register
+ * %Sx <node> source register x
+ * %Dx <node> destination register x
+ * %O <node> shifter operand
+ * %I <node> immediate
+ * %L <node> target label
+ */
+void TEMPLATE_emitf(const ir_node *node, const char *format, ...);