beuses: Remove stale start loop test.
[libfirm] / ir / be / beemitter.h
index 366f171..d44dfd3 100644 (file)
@@ -33,6 +33,7 @@
 #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;
@@ -88,20 +89,6 @@ void be_emit_init(FILE *F);
  */
 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.
  *
@@ -134,4 +121,21 @@ void be_emit_finish_line_gas(const ir_node *node);
  */
 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