#include "firm_types.h"
#include "obst.h"
#include "be.h"
+#include "irop_t.h"
/* don't use the following vars directly, they're only here for the inlines */
extern FILE *emit_file;
*/
void be_emit_exit(void);
-/**
- * Emit an ident to the (assembler) output.
- *
- * @param id the ident to be emitted
- */
-void be_emit_ident(ident *id);
-
-/**
- * Emit a firm tarval.
- *
- * @param tv the tarval to be emitted
- */
-void be_emit_tarval(ir_tarval *tv);
-
/**
* Emit the output of an ir_printf.
*
*/
void be_emit_pad_comment(void);
+/**
+ * The type of a emitter function.
+ */
+typedef void emit_func(ir_node const *node);
+
+static inline void be_set_emitter(ir_op *const op, emit_func *const func)
+{
+ set_generic_function_ptr(op, func);
+}
+
+void be_emit_nothing(ir_node const *node);
+
+/**
+ * Emit code for a node.
+ */
+void be_emit_node(ir_node const *node);
+
#endif