fixed spill alignment
[libfirm] / ir / be / ppc32 / ppc32_emitter.h
index 5510256..1de58b5 100644 (file)
@@ -26,8 +26,8 @@
 #ifndef FIRM_BE_PPC32_PPC32_EMITTER_H
 #define FIRM_BE_PPC32_PPC32_EMITTER_H
 
+#include "firm_types.h"
 #include "irargs_t.h"  // this also inlucdes <libcore/lc_print.h>
-#include "irnode.h"
 #include "debug.h"
 
 #include "../bearch_t.h"
 #include "bearch_ppc32_t.h"
 
 typedef struct _emit_env_t {
-       FILE                      *out;
-       const arch_env_t          *arch_env;
-       const ppc32_code_gen_t    *cg;
+       be_emit_env_t             *emit;     /**< environment for the generic GAS emitter. */
+       const arch_env_t          *arch_env; /**< the architecture environment */
+       const ppc32_code_gen_t    *cg;       /**< the code generator object */
        DEBUG_ONLY(firm_dbg_module_t *mod;)
 } ppc32_emit_env_t;
 
-const lc_arg_env_t *ppc32_get_arg_env(void);
-
-void equalize_dest_src(FILE *F, ir_node *n);
-
-int get_ppc32_reg_nr(ir_node *irn, int posi, int in_out);
-const char *get_ppc32_in_reg_name(ir_node *irn, int pos);
-
-void ppc32_gen_routine(FILE *F, ir_graph *irg, const ppc32_code_gen_t *cg);
-
-const char *ppc32_rlwimi_emit_helper(const ir_node *n, ppc32_emit_env_t *env);
+void ppc32_gen_routine(const ppc32_code_gen_t *cg, ir_graph *irg);
 
+void ppc32_emit_source_register(ppc32_emit_env_t *env, const ir_node *node, int pos);
+void ppc32_emit_dest_register(ppc32_emit_env_t *env, const ir_node *node, int pos);
+void ppc32_emit_offset(ppc32_emit_env_t *env, const ir_node *n);
+void ppc32_emit_immediate(ppc32_emit_env_t *env, const ir_node *n);
+void ppc32_emit_rlwimi_helper(ppc32_emit_env_t *env, const ir_node *n);
 
 #endif