fixed syntax of fpa ldf/stf instructions
[libfirm] / ir / be / beemitter.h
index 963278f..af1ccdf 100644 (file)
@@ -29,9 +29,8 @@
 
 #include <stdio.h>
 #include <stdarg.h>
+#include "firm_types.h"
 #include "obst.h"
-#include "ident.h"
-#include "irnode.h"
 #include "be.h"
 
 /* framework for emitting data (usually the final assembly code) */
@@ -43,6 +42,8 @@ typedef struct be_emit_env_t {
        int            linelength; /**< The length of the current line. */
 } be_emit_env_t;
 
+#define NULL_EMITTER    { NULL, {0,}, 0 }
+
 /**
  * Emit a character to the (assembler) output.
  *
@@ -85,7 +86,7 @@ static INLINE void be_emit_string(be_emit_env_t *env, const char *str)
  * @param env  the emitter environment
  * @param str  the null-terminated string constant
  */
-#define be_emit_cstring(env, str) { be_emit_string_len(env, str, sizeof(str)-1); }
+#define be_emit_cstring(env, str) do { be_emit_string_len(env, str, sizeof(str)-1); } while(0)
 
 /**
  * Initializes an emitter environment.
@@ -110,6 +111,14 @@ void be_emit_destroy_env(be_emit_env_t *env);
  */
 void be_emit_ident(be_emit_env_t *env, ident *id);
 
+/**
+ * Emit a firm tarval.
+ *
+ * @param env  the emitter environment
+ * @param tv   the tarval to be emitted
+ */
+void be_emit_tarval(be_emit_env_t *env, tarval *tv);
+
 /**
  * Emit the output of an ir_printf.
  *