X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fppc32%2Fbearch_ppc32_t.h;h=0b078c1fbbde0e980890b1b9e91a12c05d64b765;hb=4b734653b3f11a3182963369bb58980e4d5a62cb;hp=9a8bf1429aadf56e530a3057ab0aa24300b28efa;hpb=7e989cfcf5ed8e74b41107d8a2baa6a1a1db215e;p=libfirm diff --git a/ir/be/ppc32/bearch_ppc32_t.h b/ir/be/ppc32/bearch_ppc32_t.h index 9a8bf1429..0b078c1fb 100644 --- a/ir/be/ppc32/bearch_ppc32_t.h +++ b/ir/be/ppc32/bearch_ppc32_t.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -29,7 +29,9 @@ #include "debug.h" #include "bearch_ppc32.h" #include "ppc32_nodes_attr.h" -#include "../be.h" +#include "be.h" +#include "../beemitter.h" +#include "pset.h" #include "set.h" typedef struct _ppc32_isa_t ppc32_isa_t; @@ -37,11 +39,9 @@ typedef struct _ppc32_isa_t ppc32_isa_t; typedef struct _ppc32_code_gen_t { const arch_code_generator_if_t *impl; /**< implementation */ ir_graph *irg; /**< current irg */ - const arch_env_t *arch_env; /**< the arch env */ set *reg_set; /**< set to memorize registers for FIRM nodes (e.g. phi) */ - int emit_decls; /**< flag indicating if decls were already emitted */ ppc32_isa_t *isa; /**< the isa instance */ - const be_irg_t *birg; /**< The be-irg (contains additional information about the irg) */ + be_irg_t *birg; /**< The be-irg (contains additional information about the irg) */ unsigned area_size; /**< size of call area for the current irg */ ir_entity *area; /**< the entity representing the call area or NULL for leaf functions */ ir_node *start_succ_block; /**< the block succeeding the start block in the cfg */ @@ -51,21 +51,11 @@ typedef struct _ppc32_code_gen_t { struct _ppc32_isa_t { - const arch_isa_if_t *impl; - const arch_register_t *sp; /**< The stack pointer register. */ - const arch_register_t *bp; /**< The base pointer register. */ - const int stack_dir; /**< -1 for decreasing, 1 for increasing. */ - int num_codegens; - FILE *out; /**< output file */ + arch_env_t arch_env; /**< must be derived from arch_env_t */ + pset *symbol_set; /**< A set containing the indirect symbols. */ }; -typedef struct _ppc32_irn_ops_t { - const arch_irn_ops_if_t *impl; - ppc32_code_gen_t *cg; -} ppc32_irn_ops_t; - - /** this is a struct to minimize the number of parameters for transformation walker */ typedef struct _ppc32_transform_env_t {