X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fmips%2Fbearch_mips_t.h;h=4521d5889b29a22b72790014d73ddd26fbf532f0;hb=de3a2dd34bde1c1128f6afb0643b8fac13d38d76;hp=1e4e303887cd72883b817226d2bac357300349af;hpb=18dfdacb6faf2f93d4f6f9a6362584f8c7eb30a1;p=libfirm diff --git a/ir/be/mips/bearch_mips_t.h b/ir/be/mips/bearch_mips_t.h index 1e4e30388..4521d5889 100644 --- a/ir/be/mips/bearch_mips_t.h +++ b/ir/be/mips/bearch_mips_t.h @@ -8,28 +8,29 @@ #include "../be.h" #include "set.h" +typedef struct _mips_isa_t mips_isa_t; + struct _mips_code_gen_t { const arch_code_generator_if_t *impl; /**< implementation */ ir_graph *irg; /**< current irg */ - FILE *out; /**< output file */ const arch_env_t *arch_env; /**< the arch env */ set *reg_set; /**< set to memorize registers for FIRM nodes (e.g. phi) */ - firm_dbg_module_t *mod; /**< debugging module */ int emit_decls; /**< flag indicating if decls were already emitted */ + mips_isa_t *isa; /**< the isa instance */ const be_irg_t *birg; /**< The be-irg (contains additional information about the irg) */ ir_node **bl_list; /**< The block schedule list. */ survive_dce_t *bl_list_sdce; /**< survive dce environment for the block schedule list */ + DEBUG_ONLY(firm_dbg_module_t *mod;) /**< debugging module */ }; - -typedef struct _mips_isa_t { +struct _mips_isa_t { const arch_isa_if_t *impl; const arch_register_t *sp; /**< The stack pointer register. */ const arch_register_t *fp; /**< The base pointer register. */ const int stack_dir; /**< -1 for decreasing, 1 for increasing. */ - int num_codegens; -} mips_isa_t; - + int num_codegens; + FILE *out; /**< output file */ +}; typedef struct _mips_irn_ops_t { const arch_irn_ops_if_t *impl; @@ -40,13 +41,13 @@ typedef struct _mips_irn_ops_t { /* this is a struct to minimize the number of parameters for transformation walker */ typedef struct _mips_transform_env_t { - firm_dbg_module_t *mod; /**< The firm debugger */ dbg_info *dbg; /**< The node debug info */ ir_graph *irg; /**< The irg, the node should be created in */ ir_node *block; /**< The block, the node should belong to */ ir_node *irn; /**< The irn, to be transformed */ ir_mode *mode; /**< The mode of the irn */ mips_code_gen_t *cg; /**< The code generator */ + DEBUG_ONLY(firm_dbg_module_t *mod;) /**< The firm debugger */ } mips_transform_env_t; ir_node *mips_new_NoReg(mips_code_gen_t *cg);